Module tower_web::util::buf_stream [−][src]
Asynchronous stream of bytes.
This module contains the BufStream trait and a number of combinators for
this trait. The trait is similar to Stream in the futures library, but
instead of yielding arbitrary values, it only yields types that implement
Buf (i.e, byte collections).
Having a dedicated trait for this case enables greater functionality and ease of use.
This module will eventually be moved into Tokio.
Re-exports
pub use self::size_hint::SizeHint; |
Modules
| deflate |
TODO: Dox |
| size_hint |
|
Structs
| Chain |
A buf stream that sequences two buf streams together. |
| Collect |
Consumes a buf stream, collecting the data into a single byte container. |
| Empty |
A |
| StdStream |
Wraps a |
Traits
| BufStream |
An asynchronous stream of bytes. |
| FromBufStream |
Conversion from a |
Functions
| empty |
Create a new |