Enum qapi_spec::ErrorClass
source · pub enum ErrorClass {
GenericError,
CommandNotFound,
DeviceNotActive,
DeviceNotFound,
KVMMissingCap,
}
Variants§
GenericError
this is used for errors that don’t require a specific error class. This should be the default case for most errors
CommandNotFound
the requested command has not been found
DeviceNotActive
a device has failed to be become active
DeviceNotFound
the requested device has not been found
KVMMissingCap
the requested operation can’t be fulfilled because a required KVM capability is missing
Trait Implementations§
source§impl Clone for ErrorClass
impl Clone for ErrorClass
source§fn clone(&self) -> ErrorClass
fn clone(&self) -> ErrorClass
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ErrorClass
impl Debug for ErrorClass
source§impl<'de> Deserialize<'de> for ErrorClass
impl<'de> Deserialize<'de> for ErrorClass
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ErrorClass> for ErrorKind
impl From<ErrorClass> for ErrorKind
source§fn from(e: ErrorClass) -> Self
fn from(e: ErrorClass) -> Self
Converts to this type from the input type.
source§impl Hash for ErrorClass
impl Hash for ErrorClass
source§impl Ord for ErrorClass
impl Ord for ErrorClass
source§fn cmp(&self, other: &ErrorClass) -> Ordering
fn cmp(&self, other: &ErrorClass) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ErrorClass> for ErrorClass
impl PartialEq<ErrorClass> for ErrorClass
source§fn eq(&self, other: &ErrorClass) -> bool
fn eq(&self, other: &ErrorClass) -> bool
source§impl PartialOrd<ErrorClass> for ErrorClass
impl PartialOrd<ErrorClass> for ErrorClass
source§fn partial_cmp(&self, other: &ErrorClass) -> Option<Ordering>
fn partial_cmp(&self, other: &ErrorClass) -> Option<Ordering>
1.0.0 · source§fn 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