Struct dbus::tree::Interface [−][src]
pub struct Interface<M: MethodType<D>, D: DataType> { /* fields omitted */ }
Represents a D-Bus interface.
Methods
impl<M: MethodType<D>, D: DataType> Interface<M, D>
[src]
impl<M: MethodType<D>, D: DataType> Interface<M, D>
pub fn add_m<I: Into<Arc<Method<M, D>>>>(self, m: I) -> Self
[src]
pub fn add_m<I: Into<Arc<Method<M, D>>>>(self, m: I) -> Self
Builder function that adds a method to the interface.
pub fn add_s<I: Into<Arc<Signal<D>>>>(self, s: I) -> Self
[src]
pub fn add_s<I: Into<Arc<Signal<D>>>>(self, s: I) -> Self
Builder function that adds a signal to the interface.
pub fn add_p<I: Into<Arc<Property<M, D>>>>(self, p: I) -> Self
[src]
pub fn add_p<I: Into<Arc<Property<M, D>>>>(self, p: I) -> Self
Builder function that adds a property to the interface.
pub fn annotate<N: Into<String>, V: Into<String>>(
self,
name: N,
value: V
) -> Self
[src]
pub fn annotate<N: Into<String>, V: Into<String>>(
self,
name: N,
value: V
) -> Self
Builder function that adds an annotation to this interface.
pub fn deprecated(self) -> Self
[src]
pub fn deprecated(self) -> Self
Builder function that adds an annotation that this entity is deprecated.
pub fn get_name(&self) -> &IfaceName<'static>
[src]
pub fn get_name(&self) -> &IfaceName<'static>
Get interface name
pub fn get_data(&self) -> &D::Interface
[src]
pub fn get_data(&self) -> &D::Interface
Get associated data
ⓘImportant traits for Iter<'a, V>pub fn iter_m<'a>(&'a self) -> Iter<'a, Method<M, D>>
[src]
ⓘImportant traits for Iter<'a, V>
pub fn iter_m<'a>(&'a self) -> Iter<'a, Method<M, D>>
Iterates over methods implemented by this interface.
ⓘImportant traits for Iter<'a, V>pub fn iter_s<'a>(&'a self) -> Iter<'a, Signal<D>>
[src]
ⓘImportant traits for Iter<'a, V>
pub fn iter_s<'a>(&'a self) -> Iter<'a, Signal<D>>
Iterates over signals implemented by this interface.
ⓘImportant traits for Iter<'a, V>pub fn iter_p<'a>(&'a self) -> Iter<'a, Property<M, D>>
[src]
ⓘImportant traits for Iter<'a, V>
pub fn iter_p<'a>(&'a self) -> Iter<'a, Property<M, D>>
Iterates over properties implemented by this interface.
Trait Implementations
impl<M: Debug + MethodType<D>, D: Debug + DataType> Debug for Interface<M, D> where
D::Interface: Debug,
[src]
impl<M: Debug + MethodType<D>, D: Debug + DataType> Debug for Interface<M, D> where
D::Interface: Debug,
Auto Trait Implementations
impl<M, D> Send for Interface<M, D> where
<M as MethodType<D>>::GetProp: Send + Sync,
<D as DataType>::Interface: Send,
<D as DataType>::Method: Send + Sync,
<M as MethodType<D>>::Method: Send + Sync,
<D as DataType>::Property: Send + Sync,
<M as MethodType<D>>::SetProp: Send + Sync,
<D as DataType>::Signal: Send + Sync,
impl<M, D> Send for Interface<M, D> where
<M as MethodType<D>>::GetProp: Send + Sync,
<D as DataType>::Interface: Send,
<D as DataType>::Method: Send + Sync,
<M as MethodType<D>>::Method: Send + Sync,
<D as DataType>::Property: Send + Sync,
<M as MethodType<D>>::SetProp: Send + Sync,
<D as DataType>::Signal: Send + Sync,
impl<M, D> Sync for Interface<M, D> where
<M as MethodType<D>>::GetProp: Send + Sync,
<D as DataType>::Interface: Sync,
<D as DataType>::Method: Send + Sync,
<M as MethodType<D>>::Method: Send + Sync,
<D as DataType>::Property: Send + Sync,
<M as MethodType<D>>::SetProp: Send + Sync,
<D as DataType>::Signal: Send + Sync,
impl<M, D> Sync for Interface<M, D> where
<M as MethodType<D>>::GetProp: Send + Sync,
<D as DataType>::Interface: Sync,
<D as DataType>::Method: Send + Sync,
<M as MethodType<D>>::Method: Send + Sync,
<D as DataType>::Property: Send + Sync,
<M as MethodType<D>>::SetProp: Send + Sync,
<D as DataType>::Signal: Send + Sync,