[][src]Struct rmp_serialize::decode::Decoder

pub struct Decoder<R: Read> { /* fields omitted */ }

Note

All instances of ErrorKind::Interrupted are handled by this function and the underlying operation is retried.

Methods

impl<R: Read> Decoder<R>[src]

pub fn new(rd: R) -> Decoder<R>[src]

pub fn get_ref(&self) -> &R[src]

Gets a reference to the underlying reader in this decoder.

pub fn get_mut(&mut self) -> &mut R[src]

Gets a mutable reference to the underlying reader in this decoder.

pub fn into_inner(self) -> R[src]

Consumes this decoder returning the underlying reader.

Trait Implementations

impl<R: Read> Decoder for Decoder<R>[src]

Unstable: docs; examples; incomplete

type Error = Error

The error type for method results.

fn read_option<T, F>(&mut self, f: F) -> Result<T, Error> where
    F: FnMut(&mut Self, bool) -> Result<T, Error>, 
[src]

We treat Value::Null as None.

Auto Trait Implementations

impl<R> Send for Decoder<R> where
    R: Send

impl<R> Unpin for Decoder<R> where
    R: Unpin

impl<R> Sync for Decoder<R> where
    R: Sync

impl<R> UnwindSafe for Decoder<R> where
    R: UnwindSafe

impl<R> RefUnwindSafe for Decoder<R> where
    R: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<D> DecoderHelpers for D where
    D: Decoder
[src]