mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-07 05:25:14 -05:00
11 lines
426 B
Rust
11 lines
426 B
Rust
use reth_db_api::table::Table;
|
|
use reth_storage_errors::provider::ProviderResult;
|
|
|
|
/// The trait for fetching provider statistics.
|
|
#[auto_impl::auto_impl(&, Arc)]
|
|
pub trait StatsReader: Send + Sync {
|
|
/// Fetch the number of entries in the corresponding [Table]. Depending on the provider, it may
|
|
/// route to different data sources other than [Table].
|
|
fn count_entries<T: Table>(&self) -> ProviderResult<usize>;
|
|
}
|