Struct rmp::decode::serde::Deserializer [] [src]

pub struct Deserializer<R: Read> {
    // some fields omitted
}

Note

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

Methods

impl<R: Read> Deserializer<R>

fn new(rd: R) -> Deserializer<R>

fn get_ref(&self) -> &R

Gets a reference to the underlying reader in this decoder.

fn get_mut(&mut self) -> &mut R

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

fn into_inner(self) -> R

Consumes this decoder returning the underlying reader.

Trait Implementations

impl<R: Read> Deserializer for Deserializer<R>

Unstable: docs; examples; incomplete

type Error = Error

fn visit<V>(&mut self, visitor: V) -> Result<V::Value> where V: Visitor

fn visit_option<V>(&mut self, visitor: V) -> Result<V::Value> where V: Visitor

fn visit_bool<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_usize<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_u8<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_u16<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_u32<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_u64<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_isize<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_i8<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_i16<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_i32<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_i64<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_f32<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_f64<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_char<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_str<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_string<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_unit<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_seq<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_map<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_unit_struct<V>(&mut self, _name: &'static str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_newtype_struct<V>(&mut self, name: &'static str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_tuple_struct<V>(&mut self, _name: &'static str, len: usize, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_struct<V>(&mut self, _name: &'static str, _fields: &'static [&'static str], visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_tuple<V>(&mut self, _len: usize, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_enum<V>(&mut self, _enum: &'static str, _variants: &'static [&'static str], _visitor: V) -> Result<V::Value, Self::Error> where V: EnumVisitor

fn visit_bytes<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn format() -> &'static str