pub trait Event: Sync {
// Required method
fn handle(&self) -> &Arc<EventHandle>;
}Expand description
A public trait for passing in the events into a wait function, which gives access to the private EventHandle’s state
pub trait Event: Sync {
// Required method
fn handle(&self) -> &Arc<EventHandle>;
}A public trait for passing in the events into a wait function, which gives access to the private EventHandle’s state