Module cbor

Source
Expand description

Utility methods to encode or decode wire protocol messages in CBOR format.

Structs§

CborCodec
Implementation of the tokio codec traits to encode- and decode CBOR data as a stream.

Functions§

into_cbor_sink
Returns a writer for your data type, automatically encoding it as CBOR for a framed byte-stream.
into_cbor_stream
Returns a reader for your data type, automatically decoding CBOR byte-streams and handling the message framing.