pub trait PeerAllocator: Send + Sync {
// Required method
fn alloc<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 TableMetadataAllocatorContext,
regions: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<Peer>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
PeerAllocator
allocates Peer
s for creating regions.