pub enum SubsystemState {
Offline,
Starting,
Ready,
Active,
Degraded,
Faulted,
Stopped,
Unknown,
Custom(String),
}Expand description
Descriptive subsystem lifecycle or status vocabulary.
Variants§
Offline
Offline subsystem state.
Starting
Starting subsystem state.
Ready
Ready subsystem state.
Active
Active subsystem state.
Degraded
Degraded subsystem state.
Faulted
Faulted subsystem state.
Stopped
Stopped subsystem state.
Unknown
Unknown subsystem state.
Custom(String)
Caller-defined subsystem state text.
Trait Implementations§
Source§impl Clone for SubsystemState
impl Clone for SubsystemState
Source§fn clone(&self) -> SubsystemState
fn clone(&self) -> SubsystemState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubsystemState
impl Debug for SubsystemState
Source§impl Display for SubsystemState
impl Display for SubsystemState
Source§impl FromStr for SubsystemState
impl FromStr for SubsystemState
Source§impl Hash for SubsystemState
impl Hash for SubsystemState
Source§impl Ord for SubsystemState
impl Ord for SubsystemState
Source§fn cmp(&self, other: &SubsystemState) -> Ordering
fn cmp(&self, other: &SubsystemState) -> Ordering
1.21.0 (const: unstable) · 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 SubsystemState
impl PartialEq for SubsystemState
Source§fn eq(&self, other: &SubsystemState) -> bool
fn eq(&self, other: &SubsystemState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SubsystemState
impl PartialOrd for SubsystemState
impl Eq for SubsystemState
impl StructuralPartialEq for SubsystemState
Auto Trait Implementations§
impl Freeze for SubsystemState
impl RefUnwindSafe for SubsystemState
impl Send for SubsystemState
impl Sync for SubsystemState
impl Unpin for SubsystemState
impl UnsafeUnpin for SubsystemState
impl UnwindSafe for SubsystemState
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