Crate xdr_codec

source ·
Expand description

XDR runtime encoding/decoding

This crate provides runtime support for encoding and decoding XDR data. It is intended to be used with code generated by the “xdrgen” crate, but it can also be used with hand-written code.

It provides two key traits - Pack and Unpack - which all encodable types must implement. It also provides the helper functions pack() and unpack() to simplify the API.

Modules§

Enums§

Traits§

  • Basic packing trait.
  • The Read trait allows for reading bytes from a source.
  • Basic unpacking trait
  • A trait for objects which are byte-oriented sinks.

Functions§

Type Aliases§

  • A wrapper around std::result::Result where errors are all xdr_codec::Error.