pub struct XdrDecoder<'a> { /* private fields */ }Expand description
XDR decoder for parsing NFS4 compound replies.
Implementations§
Source§impl<'a> XdrDecoder<'a>
impl<'a> XdrDecoder<'a>
Sourcepub fn decode_u32(&mut self) -> Result<u32, XdrError>
pub fn decode_u32(&mut self) -> Result<u32, XdrError>
Decode a 32-bit unsigned integer.
Sourcepub fn decode_i32(&mut self) -> Result<i32, XdrError>
pub fn decode_i32(&mut self) -> Result<i32, XdrError>
Decode a 32-bit signed integer.
Sourcepub fn decode_u64(&mut self) -> Result<u64, XdrError>
pub fn decode_u64(&mut self) -> Result<u64, XdrError>
Decode a 64-bit unsigned integer.
Sourcepub fn decode_opaque(&mut self) -> Result<&'a [u8], XdrError>
pub fn decode_opaque(&mut self) -> Result<&'a [u8], XdrError>
Decode variable-length opaque data (reads length, then data + padding).
Auto Trait Implementations§
impl<'a> Freeze for XdrDecoder<'a>
impl<'a> RefUnwindSafe for XdrDecoder<'a>
impl<'a> Send for XdrDecoder<'a>
impl<'a> Sync for XdrDecoder<'a>
impl<'a> Unpin for XdrDecoder<'a>
impl<'a> UnsafeUnpin for XdrDecoder<'a>
impl<'a> UnwindSafe for XdrDecoder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more