[][src]Function rustbus::message_builder::marshal_as_variant

pub fn marshal_as_variant<P: Marshal>(
    p: P,
    byteorder: ByteOrder,
    buf: &mut Vec<u8>,
    fds: &mut Vec<UnixFd>
) -> Result<(), Error>

Helper function you might need, if the dbus API you use has Variants somewhere inside nested structures. If the the API has a Variant at the top-level you can use MarshalledMessageBody::push_variant.