#[repr(u32)]pub enum CompletionTag {
Normal = 0,
Throw = 1,
Suspend = 2,
FatalTrap = 3,
}Expand description
The completion class returned by a native entry, as the raw u32 result.
Variants§
Normal = 0
out.value is the return value.
Throw = 1
out.value is a rooted error handle.
Suspend = 2
A resume offset was written to the frame; out.value is the yield.
FatalTrap = 3
out.value encodes a TrapRecordId; control leaves to the runtime.
Implementations§
Trait Implementations§
Source§impl Clone for CompletionTag
impl Clone for CompletionTag
Source§fn clone(&self) -> CompletionTag
fn clone(&self) -> CompletionTag
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 CompletionTag
Source§impl Debug for CompletionTag
impl Debug for CompletionTag
impl Eq for CompletionTag
Source§impl PartialEq for CompletionTag
impl PartialEq for CompletionTag
impl StructuralPartialEq for CompletionTag
Auto Trait Implementations§
impl Freeze for CompletionTag
impl RefUnwindSafe for CompletionTag
impl Send for CompletionTag
impl Sync for CompletionTag
impl Unpin for CompletionTag
impl UnsafeUnpin for CompletionTag
impl UnwindSafe for CompletionTag
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