pub enum Measure {
Counter {
value: u64,
width: u32,
},
Gauge(f64),
Histogram(Histogram),
Text(String),
Boolean(bool),
Binary(Vec<u8>),
}Expand description
A conforming sample’s value, by its kind.
Variants§
Counter
A count modulo 2^width: a v1 counter’s width is 64
(FULL_WIDTH), a frame’s counter field’s its declared width, from
1 to 64 (core §7.6, v2 §2.20).
Gauge(f64)
Histogram(Histogram)
Text(String)
Boolean(bool)
Binary(Vec<u8>)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Measure
Auto Trait Implementations§
impl Forget for Measure
impl Freeze for Measurewhere
*const u8 is !null: Freeze,
PhantomData<f64>: Freeze,
PhantomData<u64>: Freeze,
PhantomData<u8>: Freeze,
impl Move for Measure
impl RefUnwindSafe for Measure
impl Send for Measurewhere
RawVecInner: Send,
impl Sync for Measurewhere
RawVecInner: Sync,
impl Unpin for Measure
impl UnsafeUnpin for Measurewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Measurewhere
RawVecInner: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more