pub trait EventFilter: Send + Sync {
// Required method
fn should_handle(&self, event: &EventData) -> bool;
}Expand description
事件过滤器 trait
用于过滤事件,决定是否处理某个事件。
Required Methods§
Sourcefn should_handle(&self, event: &EventData) -> bool
fn should_handle(&self, event: &EventData) -> bool
判断是否应该处理该事件