Enum qapi::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<ErrorClass, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ErrorClass, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
This method tests for
self
and other
values to be equal, and is used
by ==
.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 moresource§impl Serialize for ErrorClass
impl Serialize for ErrorClass
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ErrorClass
impl StructuralEq for ErrorClass
impl StructuralPartialEq for ErrorClass
Auto Trait Implementations§
impl RefUnwindSafe for ErrorClass
impl Send for ErrorClass
impl Sync for ErrorClass
impl Unpin for ErrorClass
impl UnwindSafe for ErrorClass
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