Trait dbus_bytestream::marshal::Marshal [-] [+] [src]

pub trait Marshal {
    fn dbus_encode(&self, buf: &mut Vec<u8>) -> usize;
    fn get_type(&self) -> String;
}

Required Methods

fn dbus_encode(&self, buf: &mut Vec<u8>) -> usize

Encodes itself into buf, and returns the number of bytes written excluding leading padding

fn get_type(&self) -> String

Returns the D-Bus type signature for this object

Implementors