pub enum DebugEvent<'a> {
HostcallError(&'a Error),
Exception(OwnedRooted<ExnRef>),
Trap(Trap),
Breakpoint,
EpochYield,
}Available on crate feature
debug only.Expand description
One debug event that occurs when running Wasm code on a store with a debug handler attached.
Variants§
HostcallError(&'a Error)
A wasmtime::Error was raised by a hostcall.
Exception(OwnedRooted<ExnRef>)
An exception is thrown by wasm.
Note that the exception may be caught by wasm if there’s an appropriate handler on the stack, but the stack hasn’t been searched yet. The debugger can inject its own exception or overwrite this exception if desired.
Trap(Trap)
A Wasm trap occurred.
Breakpoint
A breakpoint was reached.
EpochYield
An epoch yield occurred.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DebugEvent<'a>
impl<'a> RefUnwindSafe for DebugEvent<'a>
impl<'a> Send for DebugEvent<'a>
impl<'a> Sync for DebugEvent<'a>
impl<'a> Unpin for DebugEvent<'a>
impl<'a> UnsafeUnpin for DebugEvent<'a>
impl<'a> UnwindSafe for DebugEvent<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more