pub struct Observations<T: Ord + Zero + Copy> { /* private fields */ }
Expand description
Collect observations, which are sampled as a Sample
.
Implementations§
Source§impl<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> !Freeze for Observations<T>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more