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

Trait Implementations

impl<T: Encodable> From<T> for Value

fn from(x: T) -> Value

Derived Implementations

impl Clone for Value

fn clone(&self) -> Value

fn clone_from(&mut self, source: &Self)

impl Debug for Value

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Value

fn eq(&self, __arg_0: &Value) -> bool

fn ne(&self, __arg_0: &Value) -> bool