Crate streamdata

source ·
Expand description

Utilities for decoding stream data.

Modules

Structs

  • Iterate over the data readily available in the state, decoding the values on the fly.
  • The results of the successful decoding.
  • The managed decoding state for the stream of data.

Enums

  • The decoder error. This can either be any error that indicates that more data is needed to decode the value, i.e. the data is empty or is an incomplete part of an encoded value.

Traits

  • Buffer captures the interface we require from the piece that maintains the crate::State buffer. This buffer is intended for keeping the undecoded partial chunks.
  • Decoder represents the ability to decode a value from a given buffer of data.