Trait fluvio_sc_schema::partition::store::PartitionLocalStorePolicy [−][src]
pub trait PartitionLocalStorePolicy<C> where
C: MetadataItem, { #[must_use] fn names<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ReplicaKey, Global>> + 'async_trait + Send, Global>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn topic_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<PartitionSpec, C>, Global>> + 'async_trait + Send, Global>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn partition_spec_for_spu<'life0, 'async_trait>(
&'life0 self,
target_spu: i32
) -> Pin<Box<dyn Future<Output = Vec<(ReplicaKey, PartitionSpec), Global>> + 'async_trait + Send, Global>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn count_topic_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn topic_partitions_list<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Vec<ReplicaKey, Global>> + 'async_trait + Send, Global>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn table_fmt<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send, Global>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn replica_for_spu<'life0, 'async_trait>(
&'life0 self,
target_spu: i32
) -> Pin<Box<dyn Future<Output = Vec<Replica, Global>> + 'async_trait + Send, Global>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn leaders<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ReplicaLeader, Global>> + 'async_trait + Send, Global>>
where
'life0: 'async_trait,
Self: 'async_trait; fn bulk_load<S>(
partitions: Vec<((S, i32), Vec<i32, Global>), Global>
) -> Self
where
S: Into<String>; }
Required methods
#[must_use]fn names<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ReplicaKey, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn names<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ReplicaKey, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]#[must_use]fn topic_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<PartitionSpec, C>, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn topic_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<PartitionSpec, C>, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]#[must_use]fn partition_spec_for_spu<'life0, 'async_trait>(
&'life0 self,
target_spu: i32
) -> Pin<Box<dyn Future<Output = Vec<(ReplicaKey, PartitionSpec), Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn partition_spec_for_spu<'life0, 'async_trait>(
&'life0 self,
target_spu: i32
) -> Pin<Box<dyn Future<Output = Vec<(ReplicaKey, PartitionSpec), Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]find all partitions that has spu in the replicas
#[must_use]fn count_topic_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn count_topic_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]#[must_use]fn topic_partitions_list<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Vec<ReplicaKey, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn topic_partitions_list<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Vec<ReplicaKey, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]#[must_use]fn table_fmt<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn table_fmt<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]#[must_use]fn replica_for_spu<'life0, 'async_trait>(
&'life0 self,
target_spu: i32
) -> Pin<Box<dyn Future<Output = Vec<Replica, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn replica_for_spu<'life0, 'async_trait>(
&'life0 self,
target_spu: i32
) -> Pin<Box<dyn Future<Output = Vec<Replica, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]replica msg for target spu
Implementors
impl<C> PartitionLocalStorePolicy<C> for LocalStore<PartitionSpec, C> where
C: MetadataItem + Send + Sync,
[src]
impl<C> PartitionLocalStorePolicy<C> for LocalStore<PartitionSpec, C> where
C: MetadataItem + Send + Sync,
[src]pub fn partition_spec_for_spu<'life0, 'async_trait>(
&'life0 self,
target_spu: i32
) -> Pin<Box<dyn Future<Output = Vec<(ReplicaKey, PartitionSpec), Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
[src]
pub fn partition_spec_for_spu<'life0, 'async_trait>(
&'life0 self,
target_spu: i32
) -> Pin<Box<dyn Future<Output = Vec<(ReplicaKey, PartitionSpec), Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
[src]find all partitions that has spu in the replicas
pub fn replica_for_spu<'life0, 'async_trait>(
&'life0 self,
target_spu: i32
) -> Pin<Box<dyn Future<Output = Vec<Replica, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
[src]
pub fn replica_for_spu<'life0, 'async_trait>(
&'life0 self,
target_spu: i32
) -> Pin<Box<dyn Future<Output = Vec<Replica, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
[src]replica msg for target spu
pub fn names<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ReplicaKey, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ReplicaKey, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
pub fn topic_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<PartitionSpec, C>, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
[src]
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<PartitionSpec, C>, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
pub fn count_topic_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
[src]
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
pub fn topic_partitions_list<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Vec<ReplicaKey, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
[src]
&'life0 self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Vec<ReplicaKey, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
pub fn table_fmt<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
pub fn leaders<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ReplicaLeader, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ReplicaLeader, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
LocalStore<PartitionSpec, C>: 'async_trait,
pub fn bulk_load<S>(
partitions: Vec<((S, i32), Vec<i32, Global>), Global>
) -> LocalStore<PartitionSpec, C> where
S: Into<String>,
[src]
partitions: Vec<((S, i32), Vec<i32, Global>), Global>
) -> LocalStore<PartitionSpec, C> where
S: Into<String>,