[−][src]Struct futures_util::stream::Repeat
#[must_use = "streams do nothing unless polled"]pub struct Repeat<T> { /* fields omitted */ }
Stream that produces the same element repeatedly.
This structure is created by the stream::repeat
function.
Trait Implementations
impl<T: Debug> Debug for Repeat<T>
[src]
impl<T: Debug> Debug for Repeat<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Unpin for Repeat<T>
[src]
impl<T> Unpin for Repeat<T>
impl<T> Stream for Repeat<T> where
T: Clone,
[src]
impl<T> Stream for Repeat<T> where
T: Clone,
type Item = T
Values yielded by the stream.
fn poll_next(self: PinMut<Self>, _: &mut Context) -> Poll<Option<Self::Item>>
[src]
fn poll_next(self: PinMut<Self>, _: &mut Context) -> Poll<Option<Self::Item>>
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