Struct prometheus_utils::Observations [−][src]
Expand description
Collect observations, which are sampled as a Sample.
Implementations
Constructor. The name parameter has no semantic meaning, and is only
exposed by Observations::name().
Name associated with the observations, as provided in constructor.
Take a sample of the observations. Calculates a Sample corresponding to the current
state, and then clears that state.
Auto Trait Implementations
impl<T> !RefUnwindSafe for Observations<T>impl<T> Send for Observations<T> where
T: Send, impl<T> Sync for Observations<T> where
T: Send, impl<T> Unpin for Observations<T> where
T: Unpin, impl<T> UnwindSafe for Observations<T> where
T: UnwindSafe,