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
object: Box<Value>
signature: Signature
Methods
impl Variant
[src]
fn new(v: Value, s: &str) -> Variant
Create a new variant to wrap the given value. s must be the signature of v.
Trait Implementations
impl PartialEq for Variant
[src]
fn eq(&self, __arg_0: &Variant) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Variant) -> bool
This method tests for !=
.
impl Debug for Variant
[src]
impl Clone for Variant
[src]
fn clone(&self) -> Variant
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more