pub trait EventHandling {
    fn on_event<F: FnMut(&Arc<dyn Any + Send + Sync>) + 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 Any + Send + Sync>) -> bool + Send + 'static
, { ... } }
Expand description

Implemented by signal processing blocks which support event handling

Required Methods

Register event handler

Provided Methods

Wait for closure to return true on event

Implementors