Trait MonitoringCallback

Source
pub trait MonitoringCallback: Send + Sync {
    // Required method
    fn on_event<'life0, 'life1, 'async_trait>(
        &'life0 self,
        event: &'life1 MonitoringEvent,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Hardware monitoring callback trait

Required Methods§

Source

fn on_event<'life0, 'life1, 'async_trait>( &'life0 self, event: &'life1 MonitoringEvent, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§