StreamExt

Trait StreamExt 

Source
pub trait StreamExt: Stream {
    // Provided method
    fn timeout_at<T>(self, target: T) -> TimeoutAt<Self>
       where Self: Sized,
             T: Into<Deadline> { ... }
}
Expand description

Extend the Stream trait with the until method.

Provided Methods§

Source

fn timeout_at<T>(self, target: T) -> TimeoutAt<Self>
where Self: Sized, T: Into<Deadline>,

Applies the token to the stream, such that the resulting stream produces no more items once the token becomes cancelled.

Implementors§

Source§

impl<S: Stream> StreamExt for S