Enum qapi_qmp::ShutdownCause
source · [−]pub enum ShutdownCause {
none,
host_error,
host_qmp_quit,
host_qmp_system_reset,
host_signal,
host_ui,
guest_shutdown,
guest_reset,
guest_panic,
subsystem_reset,
}Variants
none
host_error
host_qmp_quit
host_qmp_system_reset
host_signal
host_ui
guest_shutdown
guest_reset
guest_panic
subsystem_reset
Trait Implementations
sourceimpl Clone for ShutdownCause
impl Clone for ShutdownCause
sourcefn clone(&self) -> ShutdownCause
fn clone(&self) -> ShutdownCause
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ShutdownCause
impl Debug for ShutdownCause
sourceimpl<'de> Deserialize<'de> for ShutdownCause
impl<'de> Deserialize<'de> for ShutdownCause
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Enum for ShutdownCause
impl Enum for ShutdownCause
fn discriminant(&self) -> usize
const COUNT: usize = 10usize
const VARIANTS: &'static [Self] = &[ ShutdownCause::none, ShutdownCause::host_error, ShutdownCause::host_qmp_quit, ShutdownCause::host_qmp_system_reset, ShutdownCause::host_signal, ShutdownCause::host_ui, ShutdownCause::guest_shutdown, ShutdownCause::guest_reset, ShutdownCause::guest_panic, ShutdownCause::subsystem_reset, ]
const NAMES: &'static [&'static str] = &[ "none", "host-error", "host-qmp-quit", "host-qmp-system-reset", "host-signal", "host-ui", "guest-shutdown", "guest-reset", "guest-panic", "subsystem-reset", ]
fn name(&self) -> &'static str
fn from_name(s: &str) -> Option<Self>
sourceimpl FromStr for ShutdownCause
impl FromStr for ShutdownCause
sourceimpl Hash for ShutdownCause
impl Hash for ShutdownCause
sourceimpl Ord for ShutdownCause
impl Ord for ShutdownCause
sourceimpl PartialEq<ShutdownCause> for ShutdownCause
impl PartialEq<ShutdownCause> for ShutdownCause
sourceimpl PartialOrd<ShutdownCause> for ShutdownCause
impl PartialOrd<ShutdownCause> for ShutdownCause
sourcefn partial_cmp(&self, other: &ShutdownCause) -> Option<Ordering>
fn partial_cmp(&self, other: &ShutdownCause) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Serialize for ShutdownCause
impl Serialize for ShutdownCause
impl Copy for ShutdownCause
impl Eq for ShutdownCause
impl StructuralEq for ShutdownCause
impl StructuralPartialEq for ShutdownCause
Auto Trait Implementations
impl RefUnwindSafe for ShutdownCause
impl Send for ShutdownCause
impl Sync for ShutdownCause
impl Unpin for ShutdownCause
impl UnwindSafe for ShutdownCause
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more