Struct prometheus_utils::Observations
source · [−]Expand description
Collect observations, which are sampled as a Sample
.
Implementations
sourceimpl<T: Ord + Zero + Copy> Observations<T>
impl<T: Ord + Zero + Copy> Observations<T>
sourcepub fn new(name: &'static str) -> Self
pub fn new(name: &'static str) -> Self
Constructor. The name
parameter has no semantic meaning, and is only
exposed by Observations::name()
.
sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
Name associated with the observations, as provided in constructor.
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>
impl<T> UnwindSafe for Observations<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more