[−][src]Struct rmp_serialize::decode::Decoder
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_nil(&mut self) -> Result<(), Error>
[src]
fn read_bool(&mut self) -> Result<bool, Error>
[src]
fn read_u8(&mut self) -> Result<u8, Error>
[src]
fn read_u16(&mut self) -> Result<u16, Error>
[src]
fn read_u32(&mut self) -> Result<u32, Error>
[src]
fn read_u64(&mut self) -> Result<u64, Error>
[src]
fn read_usize(&mut self) -> Result<usize, Error>
[src]
fn read_i8(&mut self) -> Result<i8, Error>
[src]
fn read_i16(&mut self) -> Result<i16, Error>
[src]
fn read_i32(&mut self) -> Result<i32, Error>
[src]
fn read_i64(&mut self) -> Result<i64, Error>
[src]
fn read_isize(&mut self) -> Result<isize, Error>
[src]
fn read_f32(&mut self) -> Result<f32, Error>
[src]
fn read_f64(&mut self) -> Result<f64, Error>
[src]
fn read_char(&mut self) -> Result<char, Error>
[src]
fn read_str(&mut self) -> Result<String, Error>
[src]
fn read_enum<T, F>(&mut self, _name: &str, f: F) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_enum_variant<T, F>(&mut self, names: &[&str], f: F) -> Result<T, Error> where
F: FnMut(&mut Self, usize) -> Result<T, Error>,
[src]
F: FnMut(&mut Self, usize) -> Result<T, Error>,
fn read_enum_variant_arg<T, F>(&mut self, _idx: usize, f: F) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_enum_struct_variant<T, F>(
&mut self,
names: &[&str],
f: F
) -> Result<T, Error> where
F: FnMut(&mut Self, usize) -> Result<T, Error>,
[src]
&mut self,
names: &[&str],
f: F
) -> Result<T, Error> where
F: FnMut(&mut Self, usize) -> Result<T, Error>,
fn read_enum_struct_variant_field<T, F>(
&mut self,
_name: &str,
_idx: usize,
f: F
) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
&mut self,
_name: &str,
_idx: usize,
f: F
) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_struct<T, F>(
&mut self,
_name: &str,
len: usize,
f: F
) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
&mut self,
_name: &str,
len: usize,
f: F
) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_struct_field<T, F>(
&mut self,
_name: &str,
_idx: usize,
f: F
) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
&mut self,
_name: &str,
_idx: usize,
f: F
) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_tuple<T, F>(&mut self, len: usize, f: F) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_tuple_arg<T, F>(&mut self, _idx: usize, f: F) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_tuple_struct<T, F>(
&mut self,
_name: &str,
_len: usize,
_f: F
) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
&mut self,
_name: &str,
_len: usize,
_f: F
) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_tuple_struct_arg<T, F>(
&mut self,
_idx: usize,
_f: F
) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
&mut self,
_idx: usize,
_f: F
) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_option<T, F>(&mut self, f: F) -> Result<T, Error> where
F: FnMut(&mut Self, bool) -> Result<T, Error>,
[src]
F: FnMut(&mut Self, bool) -> Result<T, Error>,
We treat Value::Null as None.
fn read_seq<T, F>(&mut self, f: F) -> Result<T, Error> where
F: FnOnce(&mut Self, usize) -> Result<T, Error>,
[src]
F: FnOnce(&mut Self, usize) -> Result<T, Error>,
fn read_seq_elt<T, F>(&mut self, _idx: usize, f: F) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_map<T, F>(&mut self, f: F) -> Result<T, Error> where
F: FnOnce(&mut Self, usize) -> Result<T, Error>,
[src]
F: FnOnce(&mut Self, usize) -> Result<T, Error>,
fn read_map_elt_key<T, F>(&mut self, _idx: usize, f: F) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
F: FnOnce(&mut Self) -> Result<T, Error>,
fn read_map_elt_val<T, F>(&mut self, _idx: usize, f: F) -> Result<T, Error> where
F: FnOnce(&mut Self) -> Result<T, Error>,
[src]
F: FnOnce(&mut Self) -> Result<T, Error>,
fn error(&mut self, err: &str) -> Error
[src]
Auto Trait Implementations
impl<R> Send for Decoder<R> where
R: Send,
R: Send,
impl<R> Unpin for Decoder<R> where
R: Unpin,
R: Unpin,
impl<R> Sync for Decoder<R> where
R: Sync,
R: Sync,
impl<R> UnwindSafe for Decoder<R> where
R: UnwindSafe,
R: UnwindSafe,
impl<R> RefUnwindSafe for Decoder<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<D> DecoderHelpers for D where
D: Decoder,
[src]
D: Decoder,