[−][src]Struct dbus_tree::Interface
Represents a D-Bus interface.
Implementations
impl<M: MethodType<D>, D: DataType> Interface<M, D>
[src]
pub fn add_m<I: Into<Arc<Method<M, D>>>>(self, m: I) -> Self
[src]
Builder function that adds a method to the interface.
pub fn add_s<I: Into<Arc<Signal<D>>>>(self, s: I) -> Self
[src]
Builder function that adds a signal to the interface.
pub fn add_p<I: Into<Arc<Property<M, D>>>>(self, p: I) -> Self
[src]
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]
self,
name: N,
value: V
) -> Self
Builder function that adds an annotation to this interface.
pub fn deprecated(self) -> Self
[src]
Builder function that adds an annotation that this entity is deprecated.
pub fn get_name(&self) -> &IfaceName<'static>
[src]
Get interface name
pub fn get_data(&self) -> &D::Interface
[src]
Get associated data
pub fn iter_m<'a>(&'a self) -> Iter<'a, Method<M, D>>ⓘ
[src]
Iterates over methods implemented by this interface.
pub fn iter_s<'a>(&'a self) -> Iter<'a, Signal<D>>ⓘ
[src]
Iterates over signals implemented by this interface.
pub fn iter_p<'a>(&'a self) -> Iter<'a, Property<M, D>>ⓘ
[src]
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]
D::Interface: Debug,
Auto Trait Implementations
impl<M, D> RefUnwindSafe for Interface<M, D> where
<M as MethodType<D>>::GetProp: RefUnwindSafe,
<D as DataType>::Interface: RefUnwindSafe,
<D as DataType>::Method: RefUnwindSafe,
<M as MethodType<D>>::Method: RefUnwindSafe,
<D as DataType>::Property: RefUnwindSafe,
<M as MethodType<D>>::SetProp: RefUnwindSafe,
<D as DataType>::Signal: RefUnwindSafe,
<M as MethodType<D>>::GetProp: RefUnwindSafe,
<D as DataType>::Interface: RefUnwindSafe,
<D as DataType>::Method: RefUnwindSafe,
<M as MethodType<D>>::Method: RefUnwindSafe,
<D as DataType>::Property: RefUnwindSafe,
<M as MethodType<D>>::SetProp: RefUnwindSafe,
<D as DataType>::Signal: RefUnwindSafe,
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,
<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,
<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> Unpin for Interface<M, D> where
<D as DataType>::Interface: Unpin,
<D as DataType>::Interface: Unpin,
impl<M, D> UnwindSafe for Interface<M, D> where
<M as MethodType<D>>::GetProp: RefUnwindSafe,
<D as DataType>::Interface: UnwindSafe,
<D as DataType>::Method: RefUnwindSafe,
<M as MethodType<D>>::Method: RefUnwindSafe,
<D as DataType>::Property: RefUnwindSafe,
<M as MethodType<D>>::SetProp: RefUnwindSafe,
<D as DataType>::Signal: RefUnwindSafe,
<M as MethodType<D>>::GetProp: RefUnwindSafe,
<D as DataType>::Interface: UnwindSafe,
<D as DataType>::Method: RefUnwindSafe,
<M as MethodType<D>>::Method: RefUnwindSafe,
<D as DataType>::Property: RefUnwindSafe,
<M as MethodType<D>>::SetProp: RefUnwindSafe,
<D as DataType>::Signal: RefUnwindSafe,
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>,