[][src]Struct serde_bser::de::Bunser

pub struct Bunser<R> { /* fields omitted */ }

Methods

impl<'de, R> Bunser<R> where
    R: DeRead<'de>, 
[src]

pub fn new(read: R) -> Self[src]

pub fn read_pdu(&mut self) -> Result<PduInfo, Error>[src]

Read the PDU off the stream. This should be called in the beginning.

pub fn read_count(&self) -> i64[src]

pub fn end(&self, pdu_info: &PduInfo) -> Result<(), Error>[src]

pub fn peek(&mut self) -> Result<u8, Error>[src]

pub fn discard(&mut self)[src]

pub fn read_bytes<'s>(
    &'s mut self,
    len: i64
) -> Result<Reference<'de, 's, [u8]>, Error>
[src]

Return a borrowed or copied version of the next n bytes.

pub fn next_i8(&mut self) -> Result<i8, Error>[src]

Return the next i8 value. This assumes the caller already knows the next value is an i8.

pub fn next_i16(&mut self) -> Result<i16, Error>[src]

Return the next i16 value. This assumes the caller already knows the next value is an i16.

pub fn next_i32(&mut self) -> Result<i32, Error>[src]

Return the next i32 value. This assumes the caller already knows the next value is an i32.

pub fn next_i64(&mut self) -> Result<i64, Error>[src]

Return the next i64 value. This assumes the caller already knows the next value is an i64.

pub fn check_next_int(&mut self) -> Result<i64, Error>[src]

Check and return the next integer value. Errors out if the next value is not actually an int.

pub fn next_f64(&mut self) -> Result<f64, Error>[src]

Trait Implementations

impl<R: Debug> Debug for Bunser<R>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T> From<T> for 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]