Struct tokio_timer_futures2::TimeoutStream [] [src]

pub struct TimeoutStream<T> { /* fields omitted */ }

Allows a given Stream to take a max duration to yield the next value.

Methods

impl<T> TimeoutStream<T>
[src]

[src]

Gets a reference to the underlying stream in this timeout.

Panics

This function panics if the underlying stream has already been consumed.

[src]

Gets a mutable reference to the underlying stream in this timeout.

Panics

This function panics if the underlying stream has already been consumed.

[src]

Consumes this timeout, returning the underlying stream.

Panics

This function panics if the underlying stream has already been consumed.

Trait Implementations

impl<T: Debug> Debug for TimeoutStream<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T, E> Stream for TimeoutStream<T> where
    T: Stream<Error = E>,
    E: From<TimeoutError<T>>, 
[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> Send for TimeoutStream<T> where
    T: Send

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