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

#[must_use = "streams do nothing unless polled"]
pub struct Repeat<T, E> where
    T: Clone
{ /* fields omitted */ }

Stream that produces the same element repeatedly.

This structure is created by the stream::repeat function.

Trait Implementations

impl<T, E> Debug for Repeat<T, E> where
    E: Debug,
    T: Debug + Clone
[src]

[src]

Formats the value using the given formatter. Read more

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

Values yielded by the stream.

Errors yielded by the stream.

[src]

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, E> Send for Repeat<T, E> where
    E: Send,
    T: Send

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