pub trait SnapshotProvider {
type Snapshot: Clone;
// Required method
fn create_snapshot(&self) -> Self::Snapshot;
}Expand description
Trait for metrics collectors that can produce a snapshot value.
Required Associated Types§
Required Methods§
Sourcefn create_snapshot(&self) -> Self::Snapshot
fn create_snapshot(&self) -> Self::Snapshot
Builds a snapshot of the current metrics state.