[][src]Trait dbus_async::Handler

pub trait Handler: Sized + Send + Sync + 'static {
#[must_use]    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        dbus: &'life1 DBus,
        msg: Message
    ) -> Pin<Box<dyn Future<Output = DBusResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

A trait for the generic Message handler.

Required methods

#[must_use]fn handle<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    dbus: &'life1 DBus,
    msg: Message
) -> Pin<Box<dyn Future<Output = DBusResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Handle the Message.

Loading content...

Implementors

Loading content...