pub trait StatsReader: Send + Sync {
// Required method
fn count_entries<T>(&self) -> Result<usize, ProviderError>
where T: Table;
}
Expand description
The trait for fetching provider statistics.
Required Methods§
sourcefn count_entries<T>(&self) -> Result<usize, ProviderError>where
T: Table,
fn count_entries<T>(&self) -> Result<usize, ProviderError>where
T: Table,
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.