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]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.

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

[src]

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

1.3.0
[src]

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]

[src]

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

[src]

This method tests for !=.

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

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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.

[src]

The corresponding D-Bus type signature for this type.

[src]

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]

[src]

Performs the append operation.

impl Append for Variant<MessageItem>
[src]

[src]

Performs the append operation.

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

[src]

Performs the append operation.

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

[src]

Performs the get operation.

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

[src]

Performs the get operation.

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

[src]

The corresponding D-Bus argument type code.

[src]

The corresponding D-Bus type signature for this type.

[src]

Performs the append operation.

[src]

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

[src]

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

[src]

Try to read the argument as an i64.

[src]

Try to read the argument as a str.

[src]

Try to read the argument as an iterator.