pub trait Trust {
// Required method
fn is_trusted(&self, addr: IpAddr) -> bool;
}Expand description
Decides whether an address belongs to a proxy you trust.
Implemented for every Fn(IpAddr) -> bool; a deployment’s CIDR sets
(net-io, bouncer-io configuration) implement it directly.
Required Methods§
Sourcefn is_trusted(&self, addr: IpAddr) -> bool
fn is_trusted(&self, addr: IpAddr) -> bool
Whether addr is a trusted proxy.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".