[][src]Enum zvariant::Deserializer

pub enum Deserializer<'ser, 'sig, 'f, B> {
    DBus(DBusDeserializer<'ser, 'sig, 'f, B>),
    GVariant(GVDeserializer<'ser, 'sig, 'f, B>),
}

Our deserialization implementation.

Using this deserializer involves an redirection to the actual deserializer. It's best to use the serialization functions, e.g crate::to_bytes or specific serializers, crate::dbus::Deserializer or crate::gvariant::Deserializer.

Variants

DBus(DBusDeserializer<'ser, 'sig, 'f, B>)
GVariant(GVDeserializer<'ser, 'sig, 'f, B>)

Implementations

impl<'de, 'sig, 'f, B> Deserializer<'de, 'sig, 'f, B> where
    B: ByteOrder
[src]

pub fn new<'r: 'de>(
    bytes: &'r [u8],
    fds: Option<&'f [RawFd]>,
    signature: &Signature<'sig>,
    ctxt: EncodingContext<B>
) -> Self
[src]

Create a Deserializer struct instance.

Trait Implementations

impl<'de, 'd, 'sig, 'f, B> Deserializer<'de> for &'d mut Deserializer<'de, 'sig, 'f, B> where
    B: ByteOrder
[src]

type Error = Error

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

Auto Trait Implementations

impl<'ser, 'sig, 'f, B> RefUnwindSafe for Deserializer<'ser, 'sig, 'f, B> where
    B: RefUnwindSafe
[src]

impl<'ser, 'sig, 'f, B> Send for Deserializer<'ser, 'sig, 'f, B> where
    B: Send
[src]

impl<'ser, 'sig, 'f, B> Sync for Deserializer<'ser, 'sig, 'f, B> where
    B: Sync
[src]

impl<'ser, 'sig, 'f, B> Unpin for Deserializer<'ser, 'sig, 'f, B> where
    B: Unpin
[src]

impl<'ser, 'sig, 'f, B> UnwindSafe for Deserializer<'ser, 'sig, 'f, B> where
    B: 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.