#[non_exhaustive]pub enum MachineState {
Running,
Unhealthy,
Exited(i32),
Stopped,
Absent,
Unknown(String),
}Expand description
A machine’s state, as its engine reports it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Running
Running.
Unhealthy
Running, but failing its health check.
Exited(i32)
Exited with this code (a job that finished, or a machine that died).
Stopped
Created or stopped, not running.
Absent
Not there.
Unknown(String)
Something else, as the engine says it.
Trait Implementations§
Source§impl Clone for MachineState
impl Clone for MachineState
Source§impl Debug for MachineState
impl Debug for MachineState
Source§impl<'de> Deserialize<'de> for MachineState
impl<'de> Deserialize<'de> for MachineState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MachineState
impl Display for MachineState
impl Eq for MachineState
Source§impl PartialEq for MachineState
impl PartialEq for MachineState
Source§impl Serialize for MachineState
impl Serialize for MachineState
impl StructuralPartialEq for MachineState
Auto Trait Implementations§
impl Freeze for MachineState
impl RefUnwindSafe for MachineState
impl Send for MachineState
impl Sync for MachineState
impl Unpin for MachineState
impl UnsafeUnpin for MachineState
impl UnwindSafe for MachineState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.