Struct futures::future::IntoStream [] [src]

#[must_use = "futures do nothing unless polled"]
pub struct IntoStream<F> where
    F: Future
{ /* fields omitted */ }

A type which converts a Future into a Stream containing a single element.

Trait Implementations

impl<F> Stream for IntoStream<F> where
    F: Future
[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

impl<F> Debug for IntoStream<F> where
    F: Debug + Future
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<F> Send for IntoStream<F> where
    F: Send

impl<F> Sync for IntoStream<F> where
    F: Sync