Trait Handler

Source
pub trait Handler: Send {
    // Required method
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        dbus: &'life1 DBus,
        msg: Message,
    ) -> Pin<Box<dyn Future<Output = DBusResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A trait for the generic Message handler.

Required Methods§

Source

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

Handle the Message.

Implementors§