pub struct ModulePromise { /* private fields */ }Expand description
Promise handed to a Rust Host AsyncFunction implementation.
The first settlement wins. Dropping an unsettled promise completes the invocation with an error so the Rust caller cannot wait forever.
Implementations§
Source§impl ModulePromise
impl ModulePromise
Trait Implementations§
Source§impl Drop for ModulePromise
impl Drop for ModulePromise
Auto Trait Implementations§
impl !RefUnwindSafe for ModulePromise
impl !Sync for ModulePromise
impl !UnwindSafe for ModulePromise
impl Forget for ModulePromise
impl Freeze for ModulePromisewhere
*const dyn FnOnce(WhiskerValue) + Send is !null: Freeze,
PhantomData<dyn FnOnce(WhiskerValue) + Send>: Freeze,
impl Move for ModulePromise
impl Send for ModulePromise
impl Unpin for ModulePromise
impl UnsafeUnpin for ModulePromisewhere
*const dyn FnOnce(WhiskerValue) + Send is !null: UnsafeUnpin,
PhantomData<dyn FnOnce(WhiskerValue) + Send>: UnsafeUnpin,
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