pub struct CancelHandle { /* private fields */ }Expand description
A thread-safe handle that can interrupt a running Wasm invocation.
Create this from Module::cancel_handle. Calling Self::cancel after the owning
Module has been dropped becomes a no-op.
Implementations§
Source§impl CancelHandle
impl CancelHandle
Trait Implementations§
Source§impl Clone for CancelHandle
impl Clone for CancelHandle
Source§fn clone(&self) -> CancelHandle
fn clone(&self) -> CancelHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CancelHandle
impl RefUnwindSafe for CancelHandle
impl Send for CancelHandle
impl Sync for CancelHandle
impl Unpin for CancelHandle
impl UnsafeUnpin for CancelHandle
impl UnwindSafe for CancelHandle
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