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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.