[][src]Struct dbus_tree::Interface

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

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]

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>>

Notable traits for Iter<'a, V>

impl<'a, V: 'a> Iterator for Iter<'a, V> type Item = &'a Arc<V>;
[src]

Iterates over methods implemented by this interface.

pub fn iter_s<'a>(&'a self) -> Iter<'a, Signal<D>>

Notable traits for Iter<'a, V>

impl<'a, V: 'a> Iterator for Iter<'a, V> type Item = &'a Arc<V>;
[src]

Iterates over signals implemented by this interface.

pub fn iter_p<'a>(&'a self) -> Iter<'a, Property<M, D>>

Notable traits for Iter<'a, V>

impl<'a, V: 'a> Iterator for Iter<'a, V> type Item = &'a Arc<V>;
[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]

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

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> Unpin for Interface<M, D> where
    <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

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.