Struct dbus_serialize::types::Variant [] [src]

pub struct Variant {
    pub object: Box<Value>,
    pub signature: Signature,
}

A Variant is a boxed type-erased value. It is trasmitted on the wire with its signature. It is useful for arrays with varying types and for allowing DBus method argument types to be determined at runtime. signature contains the signature of the boxed value.

Fields

Methods

impl Variant
[src]

Create a new variant to wrap the given value. s must be the signature of v.

Trait Implementations

impl PartialEq for Variant
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Variant
[src]

Formats the value using the given formatter.

impl Clone for Variant
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more