[][src]Struct cdr::Deserializer

pub struct Deserializer<R, S, E> { /* fields omitted */ }

A deserializer that reads bytes from a buffer.

Implementations

impl<R, S, E> Deserializer<R, S, E> where
    R: Read,
    S: SizeLimit,
    E: ByteOrder
[src]

pub fn new(reader: R, size_limit: S) -> Self[src]

Trait Implementations

impl<'de, 'a, R, S, E> Deserializer<'de> for &'a mut Deserializer<R, S, E> where
    R: Read,
    S: SizeLimit,
    E: ByteOrder
[src]

type Error = Error

The error type that can be returned if some error occurs during deserialization. Read more

impl<'de, 'a, R: 'a, S, E> EnumAccess<'de> for &'a mut Deserializer<R, S, E> where
    R: Read,
    S: SizeLimit,
    E: ByteOrder
[src]

type Error = Error

The error type that can be returned if some error occurs during deserialization. Read more

type Variant = Self

The Visitor that will be used to deserialize the content of the enum variant. Read more

impl<R, S> From<Deserializer<R, S, BigEndian>> for Deserializer<R, S, LittleEndian>[src]

impl<'de, 'a, R, S, E> VariantAccess<'de> for &'a mut Deserializer<R, S, E> where
    R: Read,
    S: SizeLimit,
    E: ByteOrder
[src]

type Error = Error

The error type that can be returned if some error occurs during deserialization. Must match the error type of our EnumAccess. Read more

Auto Trait Implementations

impl<R, S, E> RefUnwindSafe for Deserializer<R, S, E> where
    E: RefUnwindSafe,
    R: RefUnwindSafe,
    S: RefUnwindSafe
[src]

impl<R, S, E> Send for Deserializer<R, S, E> where
    E: Send,
    R: Send,
    S: Send
[src]

impl<R, S, E> Sync for Deserializer<R, S, E> where
    E: Sync,
    R: Sync,
    S: Sync
[src]

impl<R, S, E> Unpin for Deserializer<R, S, E> where
    E: Unpin,
    R: Unpin,
    S: Unpin
[src]

impl<R, S, E> UnwindSafe for Deserializer<R, S, E> where
    E: UnwindSafe,
    R: UnwindSafe,
    S: UnwindSafe
[src]

Blanket Implementations

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

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

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

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.