Skip to main content

PhysicalFlushPartitionProvider

Trait PhysicalFlushPartitionProvider 

Source
pub trait PhysicalFlushPartitionProvider: Send + Sync {
    // Required methods
    fn find_table_partition_rule<'life0, 'life1, 'async_trait>(
        &'life0 self,
        table_info: &'life1 TableInfo,
    ) -> Pin<Box<dyn Future<Output = Result<PartitionRuleRef>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn find_region_leader<'life0, 'async_trait>(
        &'life0 self,
        region_id: RegionId,
    ) -> Pin<Box<dyn Future<Output = Result<Peer>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn find_table_partition_rule<'life0, 'life1, 'async_trait>( &'life0 self, table_info: &'life1 TableInfo, ) -> Pin<Box<dyn Future<Output = Result<PartitionRuleRef>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn find_region_leader<'life0, 'async_trait>( &'life0 self, region_id: RegionId, ) -> Pin<Box<dyn Future<Output = Result<Peer>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§