Trait evident::event::filter::Filter

source ·
pub trait Filter<K, M>where
    K: Id + CaptureControl,
    M: Msg,{
    // Required method
    fn allow_entry(&self, entry: &impl EventEntry<K, M>) -> bool;
}
Expand description

The Filter trait allows to add a custom filter to an [EvidentPublisher].

Required Methods§

source

fn allow_entry(&self, entry: &impl EventEntry<K, M>) -> bool

Return true if the entry is allowed to be captured.

Implementors§

source§

impl<K, M> Filter<K, M> for DummyFilter<K, M>where K: Id + CaptureControl, M: Msg,