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]
pub fn get_ref(&self) -> &T
[src]
Gets a reference to the underlying stream in this timeout.
Panics
This function panics if the underlying stream has already been consumed.
pub fn get_mut(&mut self) -> &mut T
[src]
Gets a mutable reference to the underlying stream in this timeout.
Panics
This function panics if the underlying stream has already been consumed.
pub fn into_inner(self) -> T
[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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[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]
T: Stream<Error = E>,
E: From<TimeoutError<T>>,
type Item = T::Item
Values yielded by the stream.
type Error = E
Errors yielded by the stream.
fn poll_next(&mut self, cx: &mut Context) -> Poll<Option<T::Item>, E>
[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,
T: Send,
impl<T> Sync for TimeoutStream<T> where
T: Sync,
T: Sync,