Struct rustbus::wire::unmarshal::traits::Variant[][src]

pub struct Variant<'fds, 'buf> { /* fields omitted */ }

Implementations

impl<'buf, 'fds> Variant<'fds, 'buf>[src]

pub fn get_value_sig(&self) -> &Type[src]

Get the Type of the value contained by the variant.

pub fn get<T: Unmarshal<'buf, 'fds>>(&self) -> Result<T, Error>[src]

Unmarshal the variant’s value. This method is used in the same way as MessageBodyParser::get().

Trait Implementations

impl<'fds, 'buf> Debug for Variant<'fds, 'buf>[src]

impl Signature for Variant<'_, '_>[src]

impl<'buf, 'fds> Unmarshal<'buf, 'fds> for Variant<'fds, 'buf>[src]

Auto Trait Implementations

impl<'fds, 'buf> RefUnwindSafe for Variant<'fds, 'buf>

impl<'fds, 'buf> Send for Variant<'fds, 'buf>

impl<'fds, 'buf> Sync for Variant<'fds, 'buf>

impl<'fds, 'buf> Unpin for Variant<'fds, 'buf>

impl<'fds, 'buf> UnwindSafe for Variant<'fds, 'buf>

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.