pub struct Microvm {
pub id: String,
pub state: String,
pub endpoint: String,
pub image_arn: String,
pub image_version: String,
pub state_reason: Option<String>,
pub idle_policy: Option<IdlePolicy>,
pub maximum_duration_seconds: Option<u32>,
pub started_at: Option<SystemTime>,
pub terminated_at: Option<SystemTime>,
}Expand description
A launched MicroVM, as the service last described it.
Fields§
§id: String§state: String§endpoint: StringThe proxy endpoint. Present from the launch response onward.
image_arn: String§image_version: String§state_reason: Option<String>Why the VM is in this state, when the service said. The absence is information — TRAP-8’s message distinguishes “no stateReason” from an empty one.
idle_policy: Option<IdlePolicy>The idle policy the service reports the VM is running under.
Carried rather than dropped because it is the platform’s own account of the window
that will suspend and then terminate this VM, and it was measured coming back on a
real GetMicrovm — see ops::IdlePolicy, which used to claim it does not. The
client’s request is what asked for a window; this is what the service says it got,
and a caller diagnosing a VM that vanished earlier than expected needs the second.
Option because the model does not mark the member required on either response
shape, so an absent one must parse rather than fail.
maximum_duration_seconds: Option<u32>maximumDurationInSeconds as the service reports it.
started_at: Option<SystemTime>When the VM first started (startedAt). Absent on a launch reply.
terminated_at: Option<SystemTime>When the VM terminated (terminatedAt), once it has.
Trait Implementations§
impl Eq for Microvm
Source§impl From<MicrovmResponseWire> for Microvm
impl From<MicrovmResponseWire> for Microvm
Source§fn from(wire: MicrovmResponseWire) -> Microvm
fn from(wire: MicrovmResponseWire) -> Microvm
impl StructuralPartialEq for Microvm
Auto Trait Implementations§
impl Freeze for Microvm
impl RefUnwindSafe for Microvm
impl Send for Microvm
impl Sync for Microvm
impl Unpin for Microvm
impl UnsafeUnpin for Microvm
impl UnwindSafe for Microvm
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,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more