Struct slog_extlog::stats::StatSnapshot[][src]

pub struct StatSnapshot {
    pub definition: &'static StatDefinition,
    pub values: StatSnapshotValues,
}

A snapshot of the current values for a particular stat.

Fields

Methods

impl StatSnapshot
[src]

Create a new snapshot of a stat. The StatSnapshotValues enum variant passed should match the stat type in the definition.

Trait Implementations

impl Debug for StatSnapshot
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for StatSnapshot

impl !Sync for StatSnapshot