Struct futures::future::Empty
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct Empty<T, E> { /* fields omitted */ }
A future which is never resolved.
This future can be created with the empty
function.
Trait Implementations
impl<T, E> Future for Empty<T, E>
[src]
type Item = T
A successful value
type Error = E
An error
fn poll(&mut self, &mut Context) -> Result<Async<T>, E>
[src]
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
impl<T, E> Debug for Empty<T, E> where
E: Debug,
T: Debug,
[src]
E: Debug,
T: Debug,