[−][src]Struct futures_util::future::Ready
#[must_use = "futures do nothing unless polled"]pub struct Ready<T>(_);
A future that is immediately ready with a value
Created by the ready() function.
Trait Implementations
impl<T: Debug> Debug for Ready<T>[src]
impl<T: Debug> Debug for Ready<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Clone> Clone for Ready<T>[src]
impl<T: Clone> Clone for Ready<T>fn clone(&self) -> Ready<T>[src]
fn clone(&self) -> Ready<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T> Unpin for Ready<T>[src]
impl<T> Unpin for Ready<T>impl<T> Future for Ready<T>[src]
impl<T> Future for Ready<T>type Output = T
🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
The result of the Future.
fn poll(self: PinMut<Self>, _cx: &mut Context) -> Poll<T>[src]
fn poll(self: PinMut<Self>, _cx: &mut Context) -> Poll<T>🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more