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
definition: &'static StatDefinition
values: StatSnapshotValues
Methods
impl StatSnapshot[src]
impl StatSnapshotpub fn new(
definition: &'static StatDefinition,
values: StatSnapshotValues
) -> Self[src]
pub fn new(
definition: &'static StatDefinition,
values: StatSnapshotValues
) -> SelfCreate 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]
impl Debug for StatSnapshotAuto Trait Implementations
impl !Send for StatSnapshot
impl !Send for StatSnapshotimpl !Sync for StatSnapshot
impl !Sync for StatSnapshot