Struct futures::future::Ready [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Ready<T>(_);
A future that is immediately ready with a value
Trait Implementations
impl<T> Unpin for Ready<T>
[src]
impl<T> Unpin for Ready<T>
impl<T> Clone for Ready<T> where
T: Clone,
[src]
impl<T> Clone for Ready<T> where
T: Clone,
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> Debug for Ready<T> where
T: Debug,
[src]
impl<T> Debug for Ready<T> where
T: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
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<Ready<T>>, _cx: &mut Context) -> Poll<T>
[src]
fn poll(self: PinMut<Ready<T>>, _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