pub struct Observations<T: Ord + Zero + Copy> { /* fields omitted */ }
Expand description
Collect observations, which are sampled as a Sample
.
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.
Attempt to record this T
as part of the collection of observations. “Attempt”, because if
a reader is currently using this ObservationSet
, the observation is dropped. This
prevents recording from being a blocking operation
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.