Enum metrix::Observation [] [src]

pub enum Observation<L> {
    Observed {
        label: L,
        count: u64,
        timestamp: Instant,
    },
    ObservedOne {
        label: L,
        timestamp: Instant,
    },
    ObservedOneValue {
        label: L,
        value: u64,
        timestamp: Instant,
    },
}

An observation that has been made

Variants

Observed many occurances at th given timestamp

Fields of Observed

Observed one occurrence at the given timestamp

Fields of ObservedOne

Observed one occurence with a value at a given timestamp.

Fields of ObservedOneValue

Methods

impl<L> Observation<L>
[src]

[src]

Trait Implementations

impl<L: Clone> Clone for Observation<L>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more