[−][src]Module futures_ext::encode
A layered Encoder
adapter for Stream
transformations
This module implements an adapter to allow a tokio_io::codec::Encoder
implementation
to transform a Stream
- specifically, encode from some structured type to a Stream
of Bytes
.
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
LayeredEncoder | Stream returned by the encode function |
Functions
encode | Returns a stream that will yield Bytes that are the result of encoding items of the underlying Stream by using the provided Encoder |