pub struct CallFuture<R> { /* private fields */ }Expand description
Host-pumpable future resolving a cooperative call_async.
Polling reads the shared slot the transient client fills: Pending (storing
the waker) until the ref-matched reply arrives (Ready(reply)) or the
timeout self-tick fires (Err(Timeout)). The host driving run_until_idle
is what fills the slot, so a JS Promise over this future resolves as the
host pump advances — no event-loop blocking.
Trait Implementations§
Source§impl<R> Future for CallFuture<R>
impl<R> Future for CallFuture<R>
Auto Trait Implementations§
impl<R> Freeze for CallFuture<R>
impl<R> RefUnwindSafe for CallFuture<R>
impl<R> Send for CallFuture<R>where
R: Send,
impl<R> Sync for CallFuture<R>where
R: Send,
impl<R> Unpin for CallFuture<R>
impl<R> UnsafeUnpin for CallFuture<R>
impl<R> UnwindSafe for CallFuture<R>
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more