Struct js::CallbackFuture
source · [−]pub struct CallbackFuture { /* private fields */ }
Implementations
sourceimpl CallbackFuture
impl CallbackFuture
pub fn new() -> (CallbackFuture, f64)
Trait Implementations
sourceimpl Future for CallbackFuture
impl Future for CallbackFuture
sourcefn poll(
self: Pin<&mut CallbackFuture>,
cx: &mut Context<'_>
) -> Poll<<CallbackFuture as Future>::Output>
fn poll(
self: Pin<&mut CallbackFuture>,
cx: &mut Context<'_>
) -> Poll<<CallbackFuture as Future>::Output>
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CallbackFuture
impl Send for CallbackFuture
impl Sync for CallbackFuture
impl Unpin for CallbackFuture
impl !UnwindSafe for CallbackFuture
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> IntoFuture for F where
F: Future,
impl<F> IntoFuture for F where
F: Future,
type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more