pub trait EventHandler: Send + Sync {
// Required methods
fn on_status_change<'life0, 'life1, 'async_trait>(
&'life0 self,
mgr: &'life1 NetworkMgr,
status: MgrStatus,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn on_uldata<'life0, 'life1, 'async_trait>(
&'life0 self,
mgr: &'life1 NetworkMgr,
data: Box<UlData>,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn on_dldata_result<'life0, 'life1, 'async_trait>(
&'life0 self,
mgr: &'life1 NetworkMgr,
data: Box<DlDataResult>,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Event handler trait for the NetworkMgr
.