mz_storage_controller::statistics

Trait 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§