tower_web/util/buf_stream/
mod.rs

1//! Asynchronous stream of bytes.
2//!
3//! This module contains the `BufStream` trait and a number of combinators for
4//! this trait. The trait is similar to `Stream` in the `futures` library, but
5//! instead of yielding arbitrary values, it only yields types that implement
6//! `Buf` (i.e, byte collections).
7//!
8//! Having a dedicated trait for this case enables greater functionality and
9//! ease of use.
10//!
11//! This module will eventually be moved into Tokio.
12
13mod buf_stream;
14mod bytes;
15mod chain;
16mod collect;
17pub mod deflate;
18mod either;
19mod empty;
20mod file;
21mod from;
22pub mod size_hint;
23mod std;
24mod str;
25
26pub use self::buf_stream::BufStream;
27pub use self::chain::Chain;
28pub use self::collect::Collect;
29pub use self::empty::{empty, Empty};
30pub use self::from::FromBufStream;
31pub use self::size_hint::SizeHint;
32pub use self::std::StdStream;