[][src]Struct dbus_tree::Signal

pub struct Signal<D: DataType> { /* fields omitted */ }

A D-Bus Signal.

Implementations

impl<D: DataType> Signal<D>[src]

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

Builder method that adds an Argument to the Signal.

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

Builder method that adds an Argument to the Signal.

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

Builder method that adds multiple Arguments to the Signal.

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

Add an annotation to this Signal.

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

Add an annotation that this entity is deprecated.

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

Get signal name

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

Get associated data

pub fn emit<A: Append>(
    &self,
    p: &Path<'static>,
    i: &IfaceName<'static>,
    items: &[A]
) -> Message
[src]

Returns a message which emits the signal when sent.

Same as "msg" but also takes a list of arguments to send.

pub fn msg(&self, p: &Path<'static>, i: &IfaceName<'static>) -> Message[src]

Returns a message which emits the signal when sent.

Same as "emit" but does not take an "items" argument.

Trait Implementations

impl<D: Debug + DataType> Debug for Signal<D> where
    D::Signal: Debug
[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for Signal<D> where
    <D as DataType>::Signal: RefUnwindSafe

impl<D> Send for Signal<D> where
    <D as DataType>::Signal: Send

impl<D> Sync for Signal<D> where
    <D as DataType>::Signal: Sync

impl<D> Unpin for Signal<D> where
    <D as DataType>::Signal: Unpin

impl<D> UnwindSafe for Signal<D> where
    <D as DataType>::Signal: 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.