pub enum ShutdownMode {
Graceful {
timeout: Duration,
},
Kill,
}Expand description
How to stop a VM.
Variants§
Graceful
Ask the guest to power off and wait up to timeout; a guest still
alive at the deadline is killed, and the returned status says which
happened.
Kill
Stop the VM without asking the guest.
Trait Implementations§
Source§impl Clone for ShutdownMode
impl Clone for ShutdownMode
impl Copy for ShutdownMode
Source§impl Debug for ShutdownMode
impl Debug for ShutdownMode
impl Eq for ShutdownMode
Source§impl PartialEq for ShutdownMode
impl PartialEq for ShutdownMode
impl StructuralPartialEq for ShutdownMode
Auto Trait Implementations§
impl Freeze for ShutdownMode
impl RefUnwindSafe for ShutdownMode
impl Send for ShutdownMode
impl Sync for ShutdownMode
impl Unpin for ShutdownMode
impl UnsafeUnpin for ShutdownMode
impl UnwindSafe for ShutdownMode
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.