#[non_exhaustive]pub struct Status {
pub state: RunState,
pub live: bool,
pub provider: Option<Provider>,
pub machines: Vec<MachineStatus>,
pub networks: Vec<NetworkView>,
pub outputs: Vec<OutputValue>,
pub message: Option<String>,
pub native: Option<NativeApp>,
}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 (starting
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.
provider: Option<Provider>The Vagrant provider it uses, when it has one.
machines: Vec<MachineStatus>Every machine of the manifest.
networks: Vec<NetworkView>The run’s networks.
outputs: Vec<OutputValue>Its outputs, each filled from what was read. While not Status::live, an output the
engine itself gives (a Terraform output) has only its default, if any.
message: Option<String>The run’s message, filled, once the run is ready.
native: Option<NativeApp>The hypervisor’s own app that shows the run’s running VMs in a window of its own
(crate::Running::native_console), and what of it this computer needs; none where the
run’s provider has none (vagrant-qemu), or for a run of containers.
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.