Trait StateStoreIterStatsTrait

Source
pub(crate) trait StateStoreIterStatsTrait: Send {
    type Item: IterItem;

    // Required methods
    fn new(
        table_id: u32,
        metrics: &MonitoredStorageMetrics,
        iter_init_duration: Duration,
    ) -> Self;
    fn observe(&mut self, item: <Self::Item as IterItem>::ItemRef<'_>);
    fn report(&mut self, table_id: u32, metrics: &MonitoredStorageMetrics);
}

Required Associated Types§

Required Methods§

Source

fn new( table_id: u32, metrics: &MonitoredStorageMetrics, iter_init_duration: Duration, ) -> Self

Source

fn observe(&mut self, item: <Self::Item as IterItem>::ItemRef<'_>)

Source

fn report(&mut self, table_id: u32, metrics: &MonitoredStorageMetrics)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§