Trait radiorust::signal::EventHandling
source · pub trait EventHandling {
fn on_event<F: FnMut(&Arc<dyn Event>) + Send + 'static>(
&self,
func: F
) -> EventHandlerGuard;
fn wait_for_event<F>(
&self,
func: F
) -> Pin<Box<dyn Future<Output = ()> + Send>>
where
F: FnMut(&Arc<dyn Event>) -> bool + Send + 'static,
{ ... }
}
Expand description
Implemented by signal processing blocks which support event handling