pub trait Filter: Sized {
// Required method
fn is_match(&self, ip: IpAddr) -> bool;
// Provided method
fn or<F2: Filter>(self, right: F2) -> Or<Self, F2> { ... }
}Expand description
Interface to define function that filters out IP address
When match is found, IP address is skipped from being selected as client’s IP (e.g. it is load balancer IP)
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.