Enum applevisor::HypervisorError
source · pub enum HypervisorError {
BadArgument,
Busy,
Denied,
Error,
Fault,
IllegalState,
NoDevice,
NoResources,
Unknown(hv_return_t),
Unsupported,
}
Expand description
The error type for hypervisor errors.
Variants
BadArgument
A bad argument was provided to the function called.
Busy
The owning resource is busy.
Denied
The operation was denied by the system.
Error
The operation was unsuccessful.
Fault
An hypervisor fault occured.
IllegalState
The guest is in an illegal state.
NoDevice
No VM or vCPU available.
NoResources
No host resources available to complete the request.
Unknown(hv_return_t)
An unknown error type.
Unsupported
The operation is not supported.
Trait Implementations
sourceimpl Clone for HypervisorError
impl Clone for HypervisorError
sourcefn clone(&self) -> HypervisorError
fn clone(&self) -> HypervisorError
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 HypervisorError
impl Debug for HypervisorError
sourceimpl Display for HypervisorError
impl Display for HypervisorError
sourceimpl Error for HypervisorError
impl Error for HypervisorError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<i32> for HypervisorError
impl From<i32> for HypervisorError
sourcefn from(code: hv_return_t) -> Self
fn from(code: hv_return_t) -> Self
Converts to this type from the input type.
sourceimpl Hash for HypervisorError
impl Hash for HypervisorError
sourceimpl Into<i32> for HypervisorError
impl Into<i32> for HypervisorError
sourcefn into(self) -> hv_return_t
fn into(self) -> hv_return_t
Converts this type into the (usually inferred) input type.
sourceimpl Ord for HypervisorError
impl Ord for HypervisorError
sourcefn cmp(&self, other: &HypervisorError) -> Ordering
fn cmp(&self, other: &HypervisorError) -> 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<HypervisorError> for HypervisorError
impl PartialEq<HypervisorError> for HypervisorError
sourcefn eq(&self, other: &HypervisorError) -> bool
fn eq(&self, other: &HypervisorError) -> bool
sourceimpl PartialOrd<HypervisorError> for HypervisorError
impl PartialOrd<HypervisorError> for HypervisorError
sourcefn partial_cmp(&self, other: &HypervisorError) -> Option<Ordering>
fn partial_cmp(&self, other: &HypervisorError) -> 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 moreimpl Copy for HypervisorError
impl Eq for HypervisorError
impl StructuralEq for HypervisorError
impl StructuralPartialEq for HypervisorError
Auto Trait Implementations
impl RefUnwindSafe for HypervisorError
impl Send for HypervisorError
impl Sync for HypervisorError
impl Unpin for HypervisorError
impl UnwindSafe for HypervisorError
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