SnapshotProvider

Trait SnapshotProvider 

Source
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§

Source

type Snapshot: Clone

Snapshot type produced by this provider.

Required Methods§

Source

fn create_snapshot(&self) -> Self::Snapshot

Builds a snapshot of the current metrics state.

Implementors§