Trait MetadataManager
Source pub trait MetadataManager: Send + Sync {
// Required methods
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), FlareError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_shard_ids<'life0, 'life1, 'async_trait>(
&'life0 self,
col_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<Vec<ShardGroupState>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_shard_id<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
col_name: &'life1 str,
key: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Option<ShardGroupState>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn leave<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn other_leave<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<(), FlareError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn other_join<'life0, 'async_trait>(
&'life0 self,
join_request: JoinRequest,
) -> Pin<Box<dyn Future<Output = Result<JoinResponse, FlareError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_metadata<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ClusterMetadata, FlareError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn local_shards<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<ShardMetadata>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_collection<'life0, 'async_trait>(
&'life0 self,
request: CreateCollectionRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateCollectionResponse, FlareError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_watch(&self) -> Receiver<u64>;
}