Skip to main content

HandlerFn

Type Alias HandlerFn 

Source
pub type HandlerFn = Arc<dyn Fn(&Event) + Send + Sync>;
Expand description

handler 函数签名(与原版 Callable[[Event], None] 对齐)。

Aliased Type§

pub struct HandlerFn { /* private fields */ }