Struct rustbus::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: 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<'buf, 'fds> Unmarshal<'buf, 'fds> for Variant<'fds, 'buf>
[src]
impl<'buf, 'fds> Unmarshal<'buf, 'fds> for Variant<'fds, 'buf>
[src]