StreamExt: add a trait for additional Stream methods (#573)

Primarily, it offers a `timeout` method for streams.
This commit is contained in:
Ben Boeckel
2018-09-07 15:43:03 -07:00
committed by Carl Lerche
parent 16664189c1
commit 89d969d518
3 changed files with 68 additions and 1 deletions
+5 -1
View File
@@ -1,10 +1,14 @@
//! Utilities for working with Tokio.
//!
//! This module contains utilities that are useful for working with Tokio.
//! Currently, this only includes [`FutureExt`], but this may grow over time.
//! Currently, this only includes [`FutureExt`] and [`StreamExt`], but this
//! may grow over time.
//!
//! [`FutureExt`]: trait.FutureExt.html
//! [`StreamExt`]: trait.StreamExt.html
mod future;
mod stream;
pub use self::future::FutureExt;
pub use self::stream::StreamExt;