Trait xdr_codec::Unpack [] [src]

pub trait Unpack<In: Read>: Sized {
    fn unpack(input: &mut In) -> Result<(Self, usize)>;
}

Basic unpacking trait

This trait is used to unpack a type from an XDR encoded byte stream (encoded with Pack). It returns the decoded instance and the number of bytes consumed from the input.

This crate provides implementations for all the basic XDR types, as well as for arrays.

Required Methods

Implementors