Trait AsStats

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

Conversion trait to allow multiple shapes of data in spawn_statistics_scraper.

Required Methods§

Source

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

Source

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

Implementations on Foreign Types§

Source§

impl<Stats> AsStats<Stats> for BTreeMap<(GlobalId, Option<ReplicaId>), Stats>

Source§

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

Source§

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

Implementors§