pub struct Measure {
pub name: &'static str,
pub subject: Vec<(&'static str, String)>,
pub value: f64,
}Expand description
One measure of one reading.
Fields§
§name: &'static strThe measure’s name, such as io_write_bytes_total.
subject: Vec<(&'static str, String)>What the measure is of, outermost first: [("device", "sda")],
or [("cgroup", "node"), ("device", "sda")]. Empty for a
measure of the host as a whole.
value: f64Trait Implementations§
impl StructuralPartialEq for Measure
Auto Trait Implementations§
impl Forget for Measure
impl Freeze for Measure
impl Move for Measure
impl RefUnwindSafe for Measure
impl Send for Measure
impl Sync for Measurewhere
RawVecInner: Sync,
impl Unpin for Measure
impl UnsafeUnpin for Measurewhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(&'static str, String)>: UnsafeUnpin,
impl UnwindSafe for Measure
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