Struct futures::stream::Empty [] [src]

#[must_use = "streams do nothing unless polled"]
pub struct Empty<T, E> { /* fields omitted */ }

A stream which contains no elements.

This stream can be created with the stream::empty function.

Trait Implementations

impl<T, E> Debug for Empty<T, E> where
    E: Debug,
    T: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<T, E> Stream for Empty<T, E>
[src]

Values yielded by the stream.

Errors yielded by the stream.

[src]

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. 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