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§
sourcefn allow_entry(&self, entry: &impl EventEntry<K, M>) -> bool
fn allow_entry(&self, entry: &impl EventEntry<K, M>) -> bool
Return true
if the entry is allowed to be captured.