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