common_meta::ddl::table_meta

Trait PeerAllocator

source
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 Peers for creating regions.

Required Methods§

source

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,

Allocates regions size Peers.

Implementors§