Skip to main content

SocketProtector

Trait SocketProtector 

Source
pub trait SocketProtector: Send + Sync {
    // Required method
    fn protect(&self, fd: RawFd) -> Result<()>;
}
Expand description

Host callback used where every Reticulum underlay socket must be explicitly excluded from an application VPN, notably Android VpnService.protect().

Required Methods§

Source

fn protect(&self, fd: RawFd) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§