[][src]Struct dbus_tree::Method

pub struct Method<M: MethodType<D>, D: DataType> { /* fields omitted */ }

A D-Bus Method.

Implementations

impl<M: MethodType<D>, D: DataType> Method<M, D>[src]

pub fn in_arg<A: Into<Argument>>(self, a: A) -> Self[src]

Builder method that adds an "in" Argument to this Method.

pub fn inarg<A: Arg, S: Into<String>>(self, s: S) -> Self[src]

Builder method that adds an "in" Argument to this Method.

pub fn in_args<Z: Into<Argument>, A: IntoIterator<Item = Z>>(self, a: A) -> Self[src]

Builder method that adds multiple "in" Arguments to this Method.

pub fn out_arg<A: Into<Argument>>(self, a: A) -> Self[src]

Builder method that adds an "out" Argument to this Method.

pub fn outarg<A: Arg, S: Into<String>>(self, s: S) -> Self[src]

Builder method that adds an "out" Argument to this Method.

pub fn out_args<Z: Into<Argument>, A: IntoIterator<Item = Z>>(
    self,
    a: A
) -> Self
[src]

Builder method that adds multiple "out" Arguments to this Method.

pub fn annotate<N: Into<String>, V: Into<String>>(
    self,
    name: N,
    value: V
) -> Self
[src]

Builder method that adds an annotation to the method.

pub fn deprecated(self) -> Self[src]

Builder method that adds an annotation that this entity is deprecated.

pub fn call(&self, minfo: &MethodInfo<'_, M, D>) -> MethodResult[src]

Call the Method

pub fn get_name(&self) -> &Member<'static>[src]

Get method name

pub fn get_data(&self) -> &D::Method[src]

Get associated data

Trait Implementations

impl<M: Debug + MethodType<D>, D: Debug + DataType> Debug for Method<M, D> where
    D::Method: Debug
[src]

Auto Trait Implementations

impl<M, D> RefUnwindSafe for Method<M, D> where
    <D as DataType>::Method: RefUnwindSafe,
    <M as MethodType<D>>::Method: RefUnwindSafe

impl<M, D> Send for Method<M, D> where
    <D as DataType>::Method: Send,
    <M as MethodType<D>>::Method: Send

impl<M, D> Sync for Method<M, D> where
    <D as DataType>::Method: Sync,
    <M as MethodType<D>>::Method: Sync

impl<M, D> Unpin for Method<M, D> where
    <D as DataType>::Method: Unpin

impl<M, D> UnwindSafe for Method<M, D> where
    <D as DataType>::Method: UnwindSafe,
    <M as MethodType<D>>::Method: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.