Struct futures::future::Empty [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Empty<T> { /* fields omitted */ }
A future which is never resolved.
This future can be created with the empty function.
Trait Implementations
impl<T> Debug for Empty<T> where
T: Debug, [src]
impl<T> Debug for Empty<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 Empty<T>[src]
impl<T> Future for Empty<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<Empty<T>>, &mut Context) -> Poll<T>[src]
fn poll(self: PinMut<Empty<T>>, &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