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

pub struct Variant<T>(pub T);

A simple wrapper to specify a D-Bus variant.

See the argument guide and module level documentation for details and examples.

Methods

impl Variant<Box<RefArg>>
[src]

Creates a new refarg from an Iter. Mainly for internal use.

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

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

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

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

This method tests for !=.

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

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

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

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

ARG_TYPE: ArgType = ArgType::Variant

The corresponding D-Bus argument type code.

The corresponding D-Bus type signature for this type.

Deprecated

: Use associated constant ARG_TYPE instead

The corresponding D-Bus argument type code; just returns ARG_TYPE. Read more

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

Performs the append operation.

impl Append for Variant<MessageItem>
[src]

Performs the append operation.

impl Append for Variant<Box<RefArg>>
[src]

Performs the append operation.

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

Performs the get operation.

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

Performs the get operation.

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

The corresponding D-Bus argument type code.

The corresponding D-Bus type signature for this type.

Performs the append operation.

Transforms this argument to Any (which can be downcasted to read the current value).

Transforms this argument to Any (which can be downcasted to read the current value). Read more

Try to read the argument as an i64. Read more

Try to read the argument as an u64. Read more

Try to read the argument as an f64. Read more

Try to read the argument as a str. Read more

Try to read the argument as an iterator. Read more

Auto Trait Implementations

impl<T> Send for Variant<T> where
    T: Send

impl<T> Sync for Variant<T> where
    T: Sync