[][src]Trait dbus::arg::Arg

pub trait Arg {
    const ARG_TYPE: ArgType;

    fn signature() -> Signature<'static>;

    fn arg_type() -> ArgType { ... }
}

Types that can represent a D-Bus message argument implement this trait.

Types should also implement either Append or Get to be useful.

Associated Constants

const ARG_TYPE: ArgType

The corresponding D-Bus argument type code.

Loading content...

Required methods

fn signature() -> Signature<'static>

The corresponding D-Bus type signature for this type.

Loading content...

Provided methods

fn arg_type() -> ArgType

Deprecated:

Use associated constant ARG_TYPE instead

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

For backwards compatibility.

Loading content...

Implementations on Foreign Types

impl<'a, T: Arg> Arg for &'a T[src]

Simple lift over reference to value - this makes some iterators more ergonomic to use

impl<T: Arg> Arg for Box<T>[src]

impl<T: Arg> Arg for Rc<T>[src]

impl<T: Arg> Arg for Arc<T>[src]

impl Arg for u8[src]

impl Arg for i16[src]

impl Arg for u16[src]

impl Arg for i32[src]

impl Arg for u32[src]

impl Arg for i64[src]

impl Arg for u64[src]

impl Arg for bool[src]

impl Arg for f64[src]

impl<'a> Arg for &'a str[src]

Represents a D-Bus string.

impl<'a> Arg for String[src]

impl<'a> Arg for &'a CStr[src]

Represents a D-Bus string.

impl<A: Arg> Arg for (A,)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg> Arg for (A, B)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg, C: Arg> Arg for (A, B, C)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg, C: Arg, D: Arg> Arg for (A, B, C, D)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg, C: Arg, D: Arg, E: Arg> Arg for (A, B, C, D, E)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg, C: Arg, D: Arg, E: Arg, F: Arg> Arg for (A, B, C, D, E, F)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg, C: Arg, D: Arg, E: Arg, F: Arg, G: Arg> Arg for (A, B, C, D, E, F, G)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg, C: Arg, D: Arg, E: Arg, F: Arg, G: Arg, H: Arg> Arg for (A, B, C, D, E, F, G, H)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg, C: Arg, D: Arg, E: Arg, F: Arg, G: Arg, H: Arg, I: Arg> Arg for (A, B, C, D, E, F, G, H, I)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg, C: Arg, D: Arg, E: Arg, F: Arg, G: Arg, H: Arg, I: Arg, J: Arg> Arg for (A, B, C, D, E, F, G, H, I, J)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg, C: Arg, D: Arg, E: Arg, F: Arg, G: Arg, H: Arg, I: Arg, J: Arg, K: Arg> Arg for (A, B, C, D, E, F, G, H, I, J, K)[src]

Tuples are represented as D-Bus structs.

impl<A: Arg, B: Arg, C: Arg, D: Arg, E: Arg, F: Arg, G: Arg, H: Arg, I: Arg, J: Arg, K: Arg, L: Arg> Arg for (A, B, C, D, E, F, G, H, I, J, K, L)[src]

Tuples are represented as D-Bus structs.

impl<'a, T: Arg> Arg for &'a [T][src]

Represents a D-Bus array.

impl<K: DictKey, V: Arg> Arg for HashMap<K, V>[src]

impl<T: Arg> Arg for Vec<T>[src]

Loading content...

Implementors

impl Arg for OwnedFd[src]

impl<'a> Arg for Path<'a>[src]

impl<'a> Arg for Signature<'a>[src]

impl<'a, K: DictKey, V: Arg, I> Arg for Dict<'a, K, V, I>[src]

impl<'a, T: Arg, I> Arg for Array<'a, T, I>[src]

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

Loading content...