Struct futures_util::stream::Unfold
source · pub struct Unfold<T, F, Fut> { /* private fields */ }
Expand description
Stream for the unfold
function.
Trait Implementations§
source§impl<T, F, Fut, Item> FusedStream for Unfold<T, F, Fut>where
F: FnMut(T) -> Fut,
Fut: Future<Output = Option<(Item, T)>>,
impl<T, F, Fut, Item> FusedStream for Unfold<T, F, Fut>where
F: FnMut(T) -> Fut,
Fut: Future<Output = Option<(Item, T)>>,
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.