pub struct ExportedStat {
pub descriptor: StatDescriptor,
pub value: StatValue,
}Fields§
§descriptor: StatDescriptor§value: StatValueImplementations§
Source§impl ExportedStat
impl ExportedStat
pub fn float( domain: &'static str, name: &'static str, unit: StatUnit, value: f32, ) -> Self
pub fn unsigned( domain: &'static str, name: &'static str, unit: StatUnit, value: u32, ) -> Self
pub fn signed( domain: &'static str, name: &'static str, unit: StatUnit, value: i32, ) -> Self
pub fn unsigned_labeled( domain: &'static str, name: &'static str, unit: StatUnit, labels: Vec<StatLabel>, value: u32, ) -> Self
pub fn float_labeled( domain: &'static str, name: &'static str, unit: StatUnit, labels: Vec<StatLabel>, value: f32, ) -> Self
Trait Implementations§
Source§impl Clone for ExportedStat
impl Clone for ExportedStat
Source§fn clone(&self) -> ExportedStat
fn clone(&self) -> ExportedStat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExportedStat
impl Debug for ExportedStat
Source§impl PartialEq for ExportedStat
impl PartialEq for ExportedStat
Source§impl Serialize for ExportedStat
impl Serialize for ExportedStat
impl StructuralPartialEq for ExportedStat
Auto Trait Implementations§
impl Freeze for ExportedStat
impl RefUnwindSafe for ExportedStat
impl Send for ExportedStat
impl Sync for ExportedStat
impl Unpin for ExportedStat
impl UnsafeUnpin for ExportedStat
impl UnwindSafe for ExportedStat
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