Trait mz_storage_controller::statistics::AsStats

source ·
pub(crate) trait AsStats<Stats> {
    // Required methods
    fn as_stats(&self) -> &BTreeMap<GlobalId, StatsState<Stats>>;
    fn as_mut_stats(&mut self) -> &mut BTreeMap<GlobalId, StatsState<Stats>>;
}
Expand description

Conversion trait to allow multiple shapes of data in spawn_statistics_scraper.

Required Methods§

source

fn as_stats(&self) -> &BTreeMap<GlobalId, StatsState<Stats>>

source

fn as_mut_stats(&mut self) -> &mut BTreeMap<GlobalId, StatsState<Stats>>

Implementations on Foreign Types§

source§

impl<Stats> AsStats<Stats> for BTreeMap<GlobalId, StatsState<Stats>>

source§

fn as_stats(&self) -> &BTreeMap<GlobalId, StatsState<Stats>>

source§

fn as_mut_stats(&mut self) -> &mut BTreeMap<GlobalId, StatsState<Stats>>

Implementors§