[−]Trait fluvio::metadata::spu::store::SpuLocalStorePolicy
Required methods
#[must_use]fn online_status<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = HashSet<i32, RandomState>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = HashSet<i32, RandomState>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn online_spu_count<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn spu_used_for_replica<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn online_spu_ids<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<i32>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<i32>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn spu_ids<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<i32>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<i32>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn online_spus<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn custom_spus<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_by_id<'life0, 'async_trait>(
&'life0 self,
id: i32
) -> Pin<Box<dyn Future<Output = Option<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
id: i32
) -> Pin<Box<dyn Future<Output = Option<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn validate_spu_for_registered<'life0, 'async_trait>(
&'life0 self,
id: i32
) -> Pin<Box<dyn Future<Output = bool> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
id: i32
) -> Pin<Box<dyn Future<Output = bool> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn all_names<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<String>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<String>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn table_fmt<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn spus_in_rack_count<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn live_spu_rack_map_sorted<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<(String, Vec<i32>)>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<(String, Vec<i32>)>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn online_spu_rack_map<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = BTreeMap<String, Vec<i32>>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = BTreeMap<String, Vec<i32>>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
fn online_spus_in_rack(rack_map: &[(String, Vec<i32>)]) -> Vec<i32>
#[must_use]fn all_spus_to_spu_msgs<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<Message<SpuSpec>>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<Message<SpuSpec>>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
fn quick(spus: Vec<(i32, bool, Option<String>)>) -> Self
Implementors
impl<C> SpuLocalStorePolicy<C> for LocalStore<SpuSpec, C> where
C: MetadataItem + Send + Sync,
C: MetadataItem + Send + Sync,
pub fn online_status<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = HashSet<i32, RandomState>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = HashSet<i32, RandomState>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn online_spu_count<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
count online SPUs
pub fn spu_used_for_replica<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
count spus that can be used for replica
pub fn online_spu_ids<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<i32>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<i32>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn spu_ids<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<i32>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<i32>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn online_spus<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn custom_spus<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn get_by_id<'life0, 'async_trait>(
&'life0 self,
id: i32
) -> Pin<Box<dyn Future<Output = Option<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self,
id: i32
) -> Pin<Box<dyn Future<Output = Option<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn validate_spu_for_registered<'life0, 'async_trait>(
&'life0 self,
id: i32
) -> Pin<Box<dyn Future<Output = bool> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self,
id: i32
) -> Pin<Box<dyn Future<Output = bool> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn all_names<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<String>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<String>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn table_fmt<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn spus_in_rack_count<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
number of spus in rack count
pub fn live_spu_rack_map_sorted<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<(String, Vec<i32>)>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<(String, Vec<i32>)>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn online_spu_rack_map<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = BTreeMap<String, Vec<i32>>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = BTreeMap<String, Vec<i32>>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
pub fn online_spus_in_rack(rack_map: &[(String, Vec<i32>)]) -> Vec<i32>
pub fn all_spus_to_spu_msgs<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<Message<SpuSpec>>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<Message<SpuSpec>>> + 'async_trait + Send>> where
'life0: 'async_trait,
LocalStore<SpuSpec, C>: 'async_trait,