Struct async_rustbus::rustbus_core::wire::unmarshal::traits::Variant [−][src]
pub struct Variant<'fds, 'buf> { /* fields omitted */ }Implementations
impl<'buf, 'fds> Variant<'fds, 'buf>[src]
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>(&self) -> Result<T, Error> where
T: Unmarshal<'buf, 'fds>, [src]
T: Unmarshal<'buf, 'fds>,
Unmarshal the variant’s value. This method is used in the same way as MessageBodyParser::get().