pub enum DoneReason<T> {
    Trap {
        pc: NonNull<u8>,
        kind: Option<TrapKind>,
    },
    CallIndirectHost {
        id: u8,
        resume: NonNull<u8>,
    },
    ReturnToHost(T),
}Available on crate feature 
interp only.Expand description
Reason that the pulley interpreter has ceased execution.
Variants§
Trap
A trap happened at this bytecode instruction.
Fields
CallIndirectHost
The call_indirect_host instruction was executed.
Fields
ReturnToHost(T)
Pulley has finished and the provided value is being returned.
Auto Trait Implementations§
impl<T> Freeze for DoneReason<T>where
    T: Freeze,
impl<T> RefUnwindSafe for DoneReason<T>where
    T: RefUnwindSafe,
impl<T> !Send for DoneReason<T>
impl<T> !Sync for DoneReason<T>
impl<T> Unpin for DoneReason<T>where
    T: Unpin,
impl<T> UnwindSafe for DoneReason<T>where
    T: UnwindSafe,
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