pub trait EventHandler {
type Item: SclObject;
// Required method
fn handle_event<'life0, 'async_trait>(
&'life0 mut self,
event: SclEvent<Self::Item>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A trait for objects which can be passed as EventHandler to the watch function of a
SclClient.