#[repr(u8)]pub enum ExecStatus {
Finished = 0,
Syscall = 1,
}Expand description
Status returned by the execute / resume host functions.
Variants§
Finished = 0
Execution finished normally.
Syscall = 1
A syscall was encountered — check the ExecBuffer for details.
Implementations§
Source§impl ExecStatus
impl ExecStatus
Sourcepub fn from_outcome(outcome: &ExecOutcome) -> Self
pub fn from_outcome(outcome: &ExecOutcome) -> Self
Derive the status from an ExecOutcome.
Trait Implementations§
Source§impl Clone for ExecStatus
impl Clone for ExecStatus
Source§fn clone(&self) -> ExecStatus
fn clone(&self) -> ExecStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecStatus
impl Debug for ExecStatus
Source§impl From<ExecStatus> for u8
impl From<ExecStatus> for u8
Source§fn from(enum_value: ExecStatus) -> Self
fn from(enum_value: ExecStatus) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExecStatus
impl PartialEq for ExecStatus
Source§impl TryFrom<u8> for ExecStatus
impl TryFrom<u8> for ExecStatus
Source§type Error = TryFromPrimitiveError<ExecStatus>
type Error = TryFromPrimitiveError<ExecStatus>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ExecStatus
impl TryFromPrimitive for ExecStatus
const NAME: &'static str = "ExecStatus"
type Primitive = u8
type Error = TryFromPrimitiveError<ExecStatus>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ExecStatus
impl Eq for ExecStatus
impl StructuralPartialEq for ExecStatus
Auto Trait Implementations§
impl Freeze for ExecStatus
impl RefUnwindSafe for ExecStatus
impl Send for ExecStatus
impl Sync for ExecStatus
impl Unpin for ExecStatus
impl UnsafeUnpin for ExecStatus
impl UnwindSafe for ExecStatus
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