#[repr(i32)]pub enum HealthKind {
None = 0,
Ok = 1,
Warning = 2,
Alarm = 3,
}
Expand description
State kind
Variants§
None = 0
MISSING DOCUMENTATION!!!
Ok = 1
No problems, normal operation (“green”).
Warning = 2
Minor problems, but in safe operating mode (“yellow”). The exact meaning is a local issue, depending on the dedicated function/device.
Alarm = 3
Severe problem, no operation possible (“red”).
Implementations§
Trait Implementations§
Source§impl Clone for HealthKind
impl Clone for HealthKind
Source§fn clone(&self) -> HealthKind
fn clone(&self) -> HealthKind
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 HealthKind
impl Debug for HealthKind
Source§impl Default for HealthKind
impl Default for HealthKind
Source§fn default() -> HealthKind
fn default() -> HealthKind
Returns the “default value” for a type. Read more
Source§impl From<HealthKind> for i32
impl From<HealthKind> for i32
Source§fn from(value: HealthKind) -> i32
fn from(value: HealthKind) -> i32
Converts to this type from the input type.
Source§impl Hash for HealthKind
impl Hash for HealthKind
Source§impl Ord for HealthKind
impl Ord for HealthKind
Source§fn cmp(&self, other: &HealthKind) -> Ordering
fn cmp(&self, other: &HealthKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HealthKind
impl PartialEq for HealthKind
Source§impl PartialOrd for HealthKind
impl PartialOrd for HealthKind
impl Copy for HealthKind
impl Eq for HealthKind
impl StructuralPartialEq for HealthKind
Auto Trait Implementations§
impl Freeze for HealthKind
impl RefUnwindSafe for HealthKind
impl Send for HealthKind
impl Sync for HealthKind
impl Unpin for HealthKind
impl UnwindSafe for HealthKind
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