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
impl<In: Read> Unpack<In> for u32impl<In: Read> Unpack<In> for i32impl<In: Read> Unpack<In> for u64impl<In: Read> Unpack<In> for i64impl<In: Read> Unpack<In> for f32impl<In: Read> Unpack<In> for f64impl<In: Read> Unpack<In> for boolimpl<In: Read> Unpack<In> for ()impl<In: Read> Unpack<In> for usizeimpl<In: Read, T: Unpack<In>> Unpack<In> for Vec<T>impl<In: Read> Unpack<In> for Stringimpl<'a, In: Read> Unpack<In> for Opaque<'a>impl<In: Read, T: Unpack<In>> Unpack<In> for Option<T>impl<In: Read, T: Unpack<In>> Unpack<In> for Box<T>impl<'a, In: Read, T> Unpack<In> for Cow<'a, T> where T: 'a + Unpack<In> + ToOwned<Owned=T>