Skip to main content

Accept

Trait Accept 

Source
pub trait Accept<CH: ClientHello = NoClientHello> {
    // Required method
    fn accept(&self, ip: impl Borrow<IpAddr>, client_hello: Option<CH>) -> bool;
}

Required Methods§

Source

fn accept(&self, ip: impl Borrow<IpAddr>, client_hello: Option<CH>) -> bool

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.

Implementors§

Source§

impl<T: TlsAccept, CH: ClientHello> Accept<CH> for Firewall<T>