Enum tokio_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
sourceimpl Clone for ErrorClass
impl Clone for ErrorClass
sourcefn clone(&self) -> ErrorClass
fn clone(&self) -> ErrorClass
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 moresourceimpl Debug for ErrorClass
impl Debug for ErrorClass
sourceimpl<'de> Deserialize<'de> for ErrorClass
impl<'de> Deserialize<'de> for ErrorClass
sourcefn 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
sourceimpl Hash for ErrorClass
impl Hash for ErrorClass
sourceimpl Ord for ErrorClass
impl Ord for ErrorClass
sourcefn cmp(&self, other: &ErrorClass) -> Ordering
fn cmp(&self, other: &ErrorClass) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ErrorClass> for ErrorClass
impl PartialEq<ErrorClass> for ErrorClass
sourcefn eq(&self, other: &ErrorClass) -> bool
fn eq(&self, other: &ErrorClass) -> bool
sourceimpl PartialOrd<ErrorClass> for ErrorClass
impl PartialOrd<ErrorClass> for ErrorClass
sourcefn partial_cmp(&self, other: &ErrorClass) -> Option<Ordering>
fn partial_cmp(&self, other: &ErrorClass) -> Option<Ordering>
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 moresourceimpl Serialize for ErrorClass
impl Serialize for ErrorClass
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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