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]

A successful value

An error

[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]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T, E> Send for Empty<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for Empty<T, E> where
    E: Sync,
    T: Sync