Enum dbus_serialize::types::Value
[-] [+]
[src]
pub enum Value {
BasicValue(BasicValue),
Double(f64),
Array(Array),
Variant(Variant),
Struct(Struct),
Dictionary(Dictionary),
}Root type for any D-Bus value
Examples
use dbus_serialize::types::Value; use dbus_serialize::decoder::DBusDecoder; Value::from(5); Value::from("foobar"); let val = Value::Double(1.2); let d : f64 = DBusDecoder::decode(val).unwrap();
Variants
BasicValue | |
Double | |
Array | |
Variant | |
Struct | |
Dictionary |
Methods
impl Value
fn get_signature(&self) -> &str
Returns the D-Bus type signature that corresponds to the Value