#[repr(u32)]pub enum ExecStatus {
Finished = 0,
Syscall = 1,
}Expand description
Status returned by the run host function.
Variants§
Finished = 0
Execution finished normally.
Syscall = 1
A syscall was encountered — check the ExecBuffer for details.
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 (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 ExecStatus
Source§impl Debug for ExecStatus
impl Debug for ExecStatus
impl Eq for ExecStatus
Source§impl From<ExecStatus> for u32
impl From<ExecStatus> for u32
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§fn eq(&self, other: &ExecStatus) -> bool
fn eq(&self, other: &ExecStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExecStatus
Source§impl TryFrom<u32> for ExecStatus
impl TryFrom<u32> 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 = u32
type Error = TryFromPrimitiveError<ExecStatus>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
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