pub struct Later<T>(/* private fields */);Expand description
Work a function or member that is not async starts in the JS call
and finishes as a task of the core: JS gets a promise of T. What the
call refuses before returning it (an argument, a grant, a quota)
rejects the promise, as the task’s Err does
(a JsError with its class and properties, any other error as an
Error with its message). TS: Promise<T>.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Later<T>
impl<T> !Send for Later<T>
impl<T> !Sync for Later<T>
impl<T> !UnwindSafe for Later<T>
impl<T> Forget for Later<T>
impl<T> Freeze for Later<T>
impl<T> Move for Later<T>
impl<T> Unpin for Later<T>
impl<T> UnsafeUnpin for Later<T>
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