Struct dbus::arg::Variant [] [src]

pub struct Variant<T>(pub T);

A simple wrapper to specify a D-Bus variant.

Trait Implementations

impl<T> Arg for Variant<T>
[src]

fn arg_type() -> i32

fn signature() -> Signature<'static>

impl<T: Arg + Append> Append for Variant<T>
[src]

fn append(self, i: &mut IterAppend)

impl Append for Variant<MessageItem>
[src]

fn append(self, i: &mut IterAppend)

impl<'a, T: Get<'a>> Get<'a> for Variant<T>
[src]

fn get(i: &mut Iter<'a>) -> Option<Variant<T>>

impl<'a> Get<'a> for Variant<Iter<'a>>
[src]

fn get(i: &mut Iter<'a>) -> Option<Variant<Iter<'a>>>

Derived Implementations

impl<T: PartialOrd> PartialOrd for Variant<T>
[src]

fn partial_cmp(&self, __arg_0: &Variant<T>) -> Option<Ordering>

fn lt(&self, __arg_0: &Variant<T>) -> bool

fn le(&self, __arg_0: &Variant<T>) -> bool

fn gt(&self, __arg_0: &Variant<T>) -> bool

fn ge(&self, __arg_0: &Variant<T>) -> bool

impl<T: Ord> Ord for Variant<T>
[src]

fn cmp(&self, __arg_0: &Variant<T>) -> Ordering

impl<T: PartialEq> PartialEq for Variant<T>
[src]

fn eq(&self, __arg_0: &Variant<T>) -> bool

fn ne(&self, __arg_0: &Variant<T>) -> bool

impl<T: Eq> Eq for Variant<T>
[src]

impl<T: Hash> Hash for Variant<T>
[src]

fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

impl<T: Debug> Debug for Variant<T>
[src]

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

impl<T: Clone> Clone for Variant<T>
[src]

fn clone(&self) -> Variant<T>

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

impl<T: Copy> Copy for Variant<T>
[src]