Skip to main content

ConnectUdpPolicy

Trait ConnectUdpPolicy 

pub trait ConnectUdpPolicy:
    Send
    + Sync
    + 'static {
    // Required method
    fn allows(&self, destination: &ConnectUdpDestination<'_>) -> bool;
}
Available on crate feature masque only.
Expand description

Decides which resolved addresses a CONNECT-UDP proxy may open tunnels to.

Required Methods§

fn allows(&self, destination: &ConnectUdpDestination<'_>) -> bool

Whether the tunnel may send to destination.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl ConnectUdpPolicy for DestinationScopePolicy

§

impl<F> ConnectUdpPolicy for F
where F: Fn(&ConnectUdpDestination<'_>) -> bool + Send + Sync + 'static,

§

impl<P> ConnectUdpPolicy for Arc<P>