pub trait ProcessEvent<T>where
T: Send,{
// Required methods
fn process_network_event<'life0, 'async_trait>(
&'life0 mut self,
event: NetworkEvent,
) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn process_timer_event<'life0, 'async_trait>(
&'life0 mut self,
duration: Duration,
) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn process_event<'life0, 'async_trait>(
&'life0 mut self,
event: T,
) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn on_init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn on_stat_interval<'life0, 'async_trait>(
&'life0 mut self,
current_time: Timestamp,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn is_ready_to_process(&self) -> bool;
}
Expand description
Event Processing trait for the controllers. Handles both events from actions and timer