Struct futures_util::stream::RepeatWith
source · pub struct RepeatWith<F> { /* private fields */ }
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§
source§impl<F: Clone> Clone for RepeatWith<F>
impl<F: Clone> Clone for RepeatWith<F>
source§fn clone(&self) -> RepeatWith<F>
fn clone(&self) -> RepeatWith<F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F: Debug> Debug for RepeatWith<F>
impl<F: Debug> Debug for RepeatWith<F>
source§impl<A, F: FnMut() -> A> FusedStream for RepeatWith<F>
impl<A, F: FnMut() -> A> FusedStream for RepeatWith<F>
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.