Struct futures_util::stream::RepeatWith [−][src]
pub struct RepeatWith<F> { /* fields omitted */ }
Expand description
An stream that repeats elements of type A
endlessly by
applying the provided closure F: FnMut() -> A
.
This struct
is created by the repeat_with()
function.
See its documentation for more.
Trait Implementations
Returns true
if the stream should no longer be polled.
Auto Trait Implementations
impl<F> RefUnwindSafe for RepeatWith<F> where
F: RefUnwindSafe,
impl<F> Send for RepeatWith<F> where
F: Send,
impl<F> Sync for RepeatWith<F> where
F: Sync,
impl<F> UnwindSafe for RepeatWith<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more