pub trait PartitionPeerAllocator: Send + Sync {
// Required method
fn alloc<'life0, 'async_trait>(
&'life0 self,
cluster_id: ClusterId,
partitions: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<Peer>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Allocates Peers for partitions.