Module buf_stream

Source
Expand description

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
SizeHint type and builder

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 BufStream that contains no data.
StdStream
Wraps a futures::Stream that yields Buf values and provides a BufStream implementation.

Traits§

BufStream
An asynchronous stream of bytes.
FromBufStream
Conversion from a BufStream.

Functions§

empty
Create a new Empty instance.