Struct futures_util::stream::Once [−][src]
pub struct Once<Fut> { /* fields omitted */ }
Expand description
A stream which emits single element and then EOF.
Trait Implementations
Returns true
if the stream should no longer be polled.
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> RefUnwindSafe for Once<Fut> where
Fut: RefUnwindSafe,
impl<Fut> UnwindSafe for Once<Fut> where
Fut: UnwindSafe,