Enum zvariant::Deserializer[][src]

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.


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


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

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

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

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

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

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

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

impl<'ser, 'sig, 'f, B> UnwindSafe for Deserializer<'ser, 'sig, 'f, B> where
    B: UnwindSafe

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.