Trait reth_provider::StatsReader

source ·
pub trait StatsReader: Send + Sync {
    // Required method
    fn count_entries<T: Table>(&self) -> ProviderResult<usize>;
}
Expand description

The trait for fetching provider statistics.

Required Methods§

source

fn count_entries<T: Table>(&self) -> ProviderResult<usize>

Fetch the number of entries in the corresponding [Table]. Depending on the provider, it may route to different data sources other than [Table].

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, U: 'a + StatsReader + ?Sized> StatsReader for &'a U
where &'a U: Send + Sync,

source§

impl<U: StatsReader + ?Sized> StatsReader for Arc<U>
where Arc<U>: Send + Sync,

Implementors§