Skip to main content

EventFilter

Trait EventFilter 

Source
pub trait EventFilter: Send + Sync {
    // Required method
    fn should_handle(&self, event: &EventData) -> bool;
}
Expand description

事件过滤器 trait

用于过滤事件,决定是否处理某个事件。

Required Methods§

Source

fn should_handle(&self, event: &EventData) -> bool

判断是否应该处理该事件

Implementors§