mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-03 11:34:57 -05:00
10 lines
406 B
Rust
10 lines
406 B
Rust
use reth_db_api::table::Table;
|
|
|
|
/// 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) -> reth_storage_errors::provider::ProviderResult<usize>;
|
|
}
|