#[non_exhaustive]pub enum VmEvent {
Exited(ExitStatus),
ResetRequested,
}Expand description
Something the VM did on its own, delivered through VmHandle::events.
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.
Exited(ExitStatus)
The VM stopped, whether asked to or not. Delivered exactly once.
ResetRequested
The guest asked for a reset (a reboot); the orchestrator decides whether to honor it with a stop-and-boot.
Trait Implementations§
impl Eq for VmEvent
impl StructuralPartialEq for VmEvent
Auto Trait Implementations§
impl Freeze for VmEvent
impl RefUnwindSafe for VmEvent
impl Send for VmEvent
impl Sync for VmEvent
impl Unpin for VmEvent
impl UnsafeUnpin for VmEvent
impl UnwindSafe for VmEvent
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,
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.