Module kitsune_p2p_types::codec

source ·
Expand description

Encoding / Decoding utilities.

Traits§

  • Apply to a data item to indicate it can be encoded / decoded.

Functions§

  • Decode message-pack data from given reader into an owned item. You may wish to first wrap your reader in a BufReader.
  • Encode a serde::Serialize item as message-pack data to given writer. You may wish to first wrap your writer in a BufWriter.