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§
- XDR record marking
Enums§
- XDR errors
Traits§
- Basic packing trait.
- The
Readtrait allows for reading bytes from a source. - Basic unpacking trait
- A trait for objects which are byte-oriented sinks.
Functions§
- Serialization (packing) helper.
- Pack a fixed-size array.
- Deserialization (unpacking) helper function
- Unpack a length-limited array
- Unpack length-limited string
Type Aliases§
- A wrapper around
std::result::Resultwhere errors are allxdr_codec::Error.