Skip to main content

HandlerExt

Trait HandlerExt 

Source
pub trait HandlerExt: Send + Sync {
    // Required method
    fn get_client<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = RwLockReadGuard<'_, dyn ApiClientExt>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Implemented by all device handlers.

Required Methods§

Source

fn get_client<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = RwLockReadGuard<'_, dyn ApiClientExt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the client used by this handler.

Implementors§