Struct futures::stream::Once[][src]

#[must_use = "streams do nothing unless polled"]
pub struct Once<Fut> { /* fields omitted */ }

A stream which emits single element and then EOF.

This stream will never block and is always ready.

Trait Implementations

impl<Fut> Unpin for Once<Fut> where
    Fut: Unpin
[src]

impl<Fut> Debug for Once<Fut> where
    Fut: Debug
[src]

Formats the value using the given formatter. Read more

impl<Fut> Stream for Once<Fut> where
    Fut: Future
[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 Once<Fut> where
    Fut: Send

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