Enum applevisor_sys::hv_error_t
source · #[repr(C)]
pub enum hv_error_t {
HV_SUCCESS,
HV_ERROR,
HV_BUSY,
HV_BAD_ARGUMENT,
HV_ILLEGAL_GUEST_STATE,
HV_NO_RESOURCES,
HV_NO_DEVICE,
HV_DENIED,
HV_FAULT,
HV_UNSUPPORTED,
}Expand description
Errors returned by Hypervisor functions.
Variants
HV_SUCCESS
The operation completed successfully.
HV_ERROR
The operation was unsuccessful.
HV_BUSY
The operation was unsuccessful because the owning resource was busy.
HV_BAD_ARGUMENT
The operation was unsuccessful because the function call had an invalid argument.
HV_ILLEGAL_GUEST_STATE
The operation was unsuccessful because the guest is in an illegal state.
HV_NO_RESOURCES
The operation was unsuccessful because the host had no resources available to complete the request.
HV_NO_DEVICE
The operation was unsuccessful because no VM or vCPU was available.
HV_DENIED
The system didn’t allow the requested operation.
HV_FAULT
HV_FAULT
HV_UNSUPPORTED
The operation requested isn’t supported by the hypervisor.
Trait Implementations
sourceimpl Clone for hv_error_t
impl Clone for hv_error_t
sourcefn clone(&self) -> hv_error_t
fn clone(&self) -> hv_error_t
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 hv_error_t
impl Debug for hv_error_t
sourceimpl Hash for hv_error_t
impl Hash for hv_error_t
sourceimpl Ord for hv_error_t
impl Ord for hv_error_t
sourcefn cmp(&self, other: &hv_error_t) -> Ordering
fn cmp(&self, other: &hv_error_t) -> 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<hv_error_t> for hv_error_t
impl PartialEq<hv_error_t> for hv_error_t
sourcefn eq(&self, other: &hv_error_t) -> bool
fn eq(&self, other: &hv_error_t) -> bool
sourceimpl PartialOrd<hv_error_t> for hv_error_t
impl PartialOrd<hv_error_t> for hv_error_t
sourcefn partial_cmp(&self, other: &hv_error_t) -> Option<Ordering>
fn partial_cmp(&self, other: &hv_error_t) -> 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 hv_error_t
impl Eq for hv_error_t
impl StructuralEq for hv_error_t
impl StructuralPartialEq for hv_error_t
Auto Trait Implementations
impl RefUnwindSafe for hv_error_t
impl Send for hv_error_t
impl Sync for hv_error_t
impl Unpin for hv_error_t
impl UnwindSafe for hv_error_t
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