Skip to main content

Trust

Trait Trust 

Source
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§

Source

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".

Implementors§

Source§

impl<F: Fn(IpAddr) -> bool> Trust for F