Struct futures::stream::Repeat[][src]

#[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> Unpin for Repeat<T>
[src]

impl<T> Debug for Repeat<T> where
    T: Debug
[src]

Formats the value using the given formatter. Read more

impl<T> Stream for Repeat<T> where
    T: Clone
[src]

Values yielded by the stream.

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

Auto Trait Implementations

impl<T> Send for Repeat<T> where
    T: Send

impl<T> Sync for Repeat<T> where
    T: Sync