Struct futures_util::stream::Once
source · [−]pub struct Once<Fut> { /* private fields */ }
Expand description
A stream which emits single element and then EOF.
Trait Implementations
sourceimpl<Fut: Future> FusedStream for Once<Fut>
impl<Fut: Future> FusedStream for Once<Fut>
sourcefn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns true
if the stream should no longer be polled.
sourceimpl<Fut: Future> Stream for Once<Fut>
impl<Fut: Future> Stream for Once<Fut>
impl<'__pin, Fut> Unpin for Once<Fut> where
__Origin<'__pin, Fut>: Unpin,
Auto Trait Implementations
impl<Fut> RefUnwindSafe for Once<Fut> where
Fut: RefUnwindSafe,
impl<Fut> Send for Once<Fut> where
Fut: Send,
impl<Fut> Sync for Once<Fut> where
Fut: Sync,
impl<Fut> UnwindSafe for Once<Fut> where
Fut: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more