pub trait NetFilter<T>: Send + Syncwhere
    T: PartialEq,
{ fn allow(&mut self, source: &SocketAddr, event: &NetEvent<T>) -> bool; }
Expand description

Network filter base trait providing an event filtering interface.

Required Methods

Check if the event is allowed to pass through this filter.

Implementors