[−][src]Module futures_ext::decode
A layered Decoder
adapter for Stream
transformations
This module implements an adapter to allow a tokio_io::codec::Decoder
implementation
to transform a Stream
- specifically, decode from a Stream
of Bytes
into some
structured type.
This allows multiple protocols to be layered and composed with operations on Streams
,
rather than restricting all codec operations to AsyncRead
/AsyncWrite
operations on
an underlying transport.
Structs
LayeredDecode | Stream returned by the decode function |
Functions
decode | Returns a stream that will yield decoded items that are the result of decoding Bytes of the underlying Stream by using the provided Decoder |