Trait amethyst_network::NetFilter
source · 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
sourcefn allow(&mut self, source: &SocketAddr, event: &NetEvent<T>) -> bool
fn allow(&mut self, source: &SocketAddr, event: &NetEvent<T>) -> bool
Check if the event is allowed to pass through this filter.