pub trait Unpack<In: Read>: Sized {
// Required method
fn unpack(input: &mut In) -> Result<(Self, usize)>;
}Expand description
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§
Object Safety§
This trait is not object safe.