#[non_exhaustive]pub enum MachineState {
Running,
Unhealthy,
Exited(i32),
Stopped,
Absent,
Unknown(String),
Busy,
}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.
Busy
Not read: another process acts on it (Vagrant’s lock on the machine, held by a vagrant up that isn’t this runner’s), so its state is whatever that action leaves.
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 JsonSchema for MachineState
impl JsonSchema for MachineState
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§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 Forget for MachineState
impl Freeze for MachineState
impl Move 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.