pub enum Quality {
Good = 0,
Bad = 192,
Stale = 500,
}Expand description
Represents the different quality property values of a metric
Variants§
Trait Implementations§
Source§impl From<Quality> for PropertyValue
impl From<Quality> for PropertyValue
Source§impl HasDataType for Quality
impl HasDataType for Quality
Source§fn supported_datatypes() -> &'static [DataType]
fn supported_datatypes() -> &'static [DataType]
Get all the Sparkplug crate::payload::DataType’s the type supports
Source§fn default_datatype() -> DataType
fn default_datatype() -> DataType
Default crate::payload::DataType the type maps to
Source§impl TryFrom<PropertyValue> for Quality
impl TryFrom<PropertyValue> for Quality
Source§type Error = FromValueTypeError
type Error = FromValueTypeError
The type returned in the event of a conversion error.
impl PropertyValue for Quality
Auto Trait Implementations§
impl Freeze for Quality
impl RefUnwindSafe for Quality
impl Send for Quality
impl Sync for Quality
impl Unpin for Quality
impl UnsafeUnpin for Quality
impl UnwindSafe for Quality
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