Skip to main content

EventHandler

Type Alias EventHandler 

Source
pub type EventHandler = Arc<dyn Fn(AgentSessionEvent) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>> + Send + Sync>;
Expand description

Async event handler type - returns a pinned boxed future

Aliased Type§

pub struct EventHandler { /* private fields */ }