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§
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)
Object Safety§
This trait is not object safe.