pub trait HeaderValidator:
Send
+ Sync
+ 'static {
// Required method
fn validate(
&self,
header: &ProxyInfo,
peer_addr: SocketAddr,
) -> Result<(), Box<dyn Error + Send + Sync>>;
}Expand description
Validate a Proxy Protocol header before the connection is passed to the application