pub enum CallHook {
CallingWasm,
ReturningFromWasm,
CallingHost,
ReturningFromHost,
}
Expand description
Argument to the callback set by Store::call_hook
to indicate why the
callback was invoked.
Variants§
CallingWasm
Indicates that a WebAssembly function is being called from the host.
ReturningFromWasm
Indicates that a WebAssembly function called from the host is returning.
CallingHost
Indicates that a host function is being called from a WebAssembly function.
ReturningFromHost
Indicates that a host function called from a WebAssembly function is returning.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallHook
impl RefUnwindSafe for CallHook
impl Send for CallHook
impl Sync for CallHook
impl Unpin for CallHook
impl UnwindSafe for CallHook
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