pub enum DebugEvent<'a> {
HostcallError(&'a Error),
CaughtExceptionThrown(OwnedRooted<ExnRef>),
UncaughtExceptionThrown(OwnedRooted<ExnRef>),
Trap(Trap),
}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)
An anyhow::Error was raised by a hostcall.
CaughtExceptionThrown(OwnedRooted<ExnRef>)
An exception is thrown and caught by Wasm. The current state is at the throw-point.
UncaughtExceptionThrown(OwnedRooted<ExnRef>)
An exception was not caught and is escaping to the host.
Trap(Trap)
A Wasm trap 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> 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