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
impl Marshal for u8
impl Marshal for bool
impl Marshal for i16
impl Marshal for u16
impl Marshal for i32
impl Marshal for u32
impl Marshal for i64
impl Marshal for u64
impl Marshal for f64
impl<'a> Marshal for &'a str
impl<'a> Marshal for String
impl Marshal for Path
impl Marshal for Signature
impl Marshal for Struct
impl<T: Marshal> Marshal for Vec<T>
impl<K, V> Marshal for HashMap<K, V> where K: Clone + Hash + Eq + BasicMarshal, V: Clone + Marshal
impl Marshal for Variant
impl Marshal for BasicValue
impl Marshal for Value
impl Marshal for HeaderField
impl Marshal for Message