Struct futures_util::future::IntoStream[][src]

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

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

Trait Implementations

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

Formats the value using the given formatter. Read more

impl<Fut: Future> Stream for IntoStream<Fut>
[src]

Values yielded by the stream.

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<Fut> Send for IntoStream<Fut> where
    Fut: Send

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