Expand description
Codec utilities for working with framed protocols.
Contains adapters to go from streams of bytes, AsyncRead and AsyncWrite, to framed
streams implementing Sink and Stream. Framed streams are also known as transports.
Structs§
- Bytes
Codec - Bytes codec. Reads/writes chunks of bytes from a stream.
- Framed
- A unified
StreamandSinkinterface to an underlying I/O object, using theEncoderandDecodertraits to encode and decode frames. - Framed
Parts FramedPartscontains an export of the data of a Framed transport.- Lines
Codec - Lines codec. Reads/writes line delimited strings.
- ReadBuf
- A wrapper around a byte buffer that is incrementally filled and initialized.
Traits§
- Async
Read - Reads bytes from a source.
- Async
Write - Writes bytes asynchronously.
- Decoder
- Decoding of frames via buffers.
- Encoder
- Trait of helper objects to write out messages as bytes, for use with
FramedWrite.
Functions§
- poll_
read_ buf - Try to read data from an
AsyncReadinto an implementer of theBufMuttrait.