[−][src]Struct dbus_tree::Signal
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]
self,
name: N,
value: V
) -> Self
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]
&self,
p: &Path<'static>,
i: &IfaceName<'static>,
items: &[A]
) -> Message
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
Auto Trait Implementations
impl<D> RefUnwindSafe for Signal<D> where
<D as DataType>::Signal: RefUnwindSafe,
<D as DataType>::Signal: RefUnwindSafe,
impl<D> Send for Signal<D> where
<D as DataType>::Signal: Send,
<D as DataType>::Signal: Send,
impl<D> Sync for Signal<D> where
<D as DataType>::Signal: Sync,
<D as DataType>::Signal: Sync,
impl<D> Unpin for Signal<D> where
<D as DataType>::Signal: Unpin,
<D as DataType>::Signal: Unpin,
impl<D> UnwindSafe for Signal<D> where
<D as DataType>::Signal: UnwindSafe,
<D as DataType>::Signal: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,