Enum applevisor::ExitReason
source · pub enum ExitReason {
CANCELED,
EXCEPTION,
VTIMER_ACTIVATED,
UNKNOWN,
}
Expand description
The type that describes the event that triggered a guest exit to the host.
Variants
CANCELED
The value that identifies exits requested by exit handler on the host.
EXCEPTION
The value that identifies traps caused by the guest operations.
VTIMER_ACTIVATED
The value that identifies when the virtual timer enters the pending state.
UNKNOWN
The value that identifies unexpected exits.
Trait Implementations
sourceimpl Clone for ExitReason
impl Clone for ExitReason
sourcefn clone(&self) -> ExitReason
fn clone(&self) -> ExitReason
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 ExitReason
impl Debug for ExitReason
sourceimpl From<hv_exit_reason_t> for ExitReason
impl From<hv_exit_reason_t> for ExitReason
sourcefn from(src: hv_exit_reason_t) -> Self
fn from(src: hv_exit_reason_t) -> Self
Converts to this type from the input type.
sourceimpl Hash for ExitReason
impl Hash for ExitReason
sourceimpl Into<hv_exit_reason_t> for ExitReason
impl Into<hv_exit_reason_t> for ExitReason
sourcefn into(self) -> hv_exit_reason_t
fn into(self) -> hv_exit_reason_t
Converts this type into the (usually inferred) input type.
sourceimpl Ord for ExitReason
impl Ord for ExitReason
sourcefn cmp(&self, other: &ExitReason) -> Ordering
fn cmp(&self, other: &ExitReason) -> 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<ExitReason> for ExitReason
impl PartialEq<ExitReason> for ExitReason
sourcefn eq(&self, other: &ExitReason) -> bool
fn eq(&self, other: &ExitReason) -> bool
sourceimpl PartialOrd<ExitReason> for ExitReason
impl PartialOrd<ExitReason> for ExitReason
sourcefn partial_cmp(&self, other: &ExitReason) -> Option<Ordering>
fn partial_cmp(&self, other: &ExitReason) -> 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 ExitReason
impl Eq for ExitReason
impl StructuralEq for ExitReason
impl StructuralPartialEq for ExitReason
Auto Trait Implementations
impl RefUnwindSafe for ExitReason
impl Send for ExitReason
impl Sync for ExitReason
impl Unpin for ExitReason
impl UnwindSafe for ExitReason
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