pub enum TrapOutcome {
Exit {
code: i32,
},
Continue,
ThreadExit,
}Expand description
Outcome of handling a trap.
Variants§
Exit
Guest called BSD exit (or the host forced process termination).
Continue
Guest should resume after the trap instruction.
ThreadExit
Guest called bsdthread_terminate (or equivalent): end this host thread only.
Trait Implementations§
Source§impl Clone for TrapOutcome
impl Clone for TrapOutcome
Source§fn clone(&self) -> TrapOutcome
fn clone(&self) -> TrapOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrapOutcome
Source§impl Debug for TrapOutcome
impl Debug for TrapOutcome
impl Eq for TrapOutcome
Source§impl PartialEq for TrapOutcome
impl PartialEq for TrapOutcome
impl StructuralPartialEq for TrapOutcome
Auto Trait Implementations§
impl Freeze for TrapOutcome
impl RefUnwindSafe for TrapOutcome
impl Send for TrapOutcome
impl Sync for TrapOutcome
impl Unpin for TrapOutcome
impl UnsafeUnpin for TrapOutcome
impl UnwindSafe for TrapOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.