#[non_exhaustive]pub struct Status {
pub state: RunState,
pub live: bool,
pub desired: Option<Desired>,
pub failed_cause: Option<ErrorCode>,
pub provider: Option<Provider>,
pub machines: Vec<MachineStatus>,
pub outputs: Vec<OutputValue>,
pub native: Option<NativeApp>,
pub parks: Vec<Park>,
}Expand description
A run as it stands.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: RunStateWhere it stands. While an operation holds the run: the moving state it is in (creating
through an up), else, before it records one or for an operation that leaves the run as
it was meanwhile (an update: ready), the state the run’s record holds.
live: boolWhether the machines and outputs were read from the engine now. False while an operation
holds the run (in this process or another), whose tools a read would contend with (Vagrant
refuses to read a VM’s state while a vagrant up provisions it): they are then as the
runner last read them (none before it ever did), and the outputs the engine itself gives
are left out.
desired: Option<Desired>What the user wants of the run (the last operation that set it: up, park, down);
none for a run never recorded. With state, whether the run is where it should be.
failed_cause: Option<ErrorCode>Why the run failed, when its recorded state is failed.
provider: Option<Provider>The Vagrant provider it uses, when it has one.
machines: Vec<MachineStatus>Every machine its tool reports.
outputs: Vec<OutputValue>What the project gives back (a module’s outputs), as read; none while not
Status::live.
native: Option<NativeApp>The hypervisor’s own app the run’s VMs open in (crate::Running::native_console); none
where there is none (containers, QEMU), and while not Status::live.
parks: Vec<Park>The ways the run can be parked, by its format and provider (park_modes): none for a
run never recorded, nor for a Terraform module, which is never parked. Whether it can be
parked now is its state’s: a run is parked from ready.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
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>,
impl Eq for Status
Source§impl JsonSchema for Status
impl JsonSchema for Status
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Status
Auto Trait Implementations§
impl Forget for Status
impl Freeze for Status
impl Move for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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
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
key and return true if they are equal.