pub enum StopReason<'a> {
End(ExitCode),
Eof,
Exception(LineCol, String),
UpcallAsync(UpcallHandler<'a>),
Yield,
}Expand description
Representation of termination states from program execution.
Variants§
End(ExitCode)
Execution terminated due to an END instruction.
Eof
Execution terminated due to natural fallthrough.
Exception(LineCol, String)
Execution stopped due to an instruction-level exception.
UpcallAsync(UpcallHandler<'a>)
Execution stopped due to an asynchronous upcall that requires service from the caller.
Yield
Execution stopped to yield control back to the caller.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for StopReason<'a>
impl<'a> !Send for StopReason<'a>
impl<'a> !Sync for StopReason<'a>
impl<'a> !UnwindSafe for StopReason<'a>
impl<'a> Freeze for StopReason<'a>
impl<'a> Unpin for StopReason<'a>
impl<'a> UnsafeUnpin for StopReason<'a>
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