reth_storage_api/stats.rs
1use reth_db_api::table::Table;
2
3/// The trait for fetching provider statistics.
4#[auto_impl::auto_impl(&, Arc)]
5pub trait StatsReader: Send + Sync {
6 /// Fetch the number of entries in the corresponding [Table]. Depending on the provider, it may
7 /// route to different data sources other than [Table].
8 fn count_entries<T: Table>(&self) -> reth_storage_errors::provider::ProviderResult<usize>;
9}