pub struct Socks { /* private fields */ }
Expand description
SOCKS4/4a, SOCKS5 Local Server
Implementations
Create a new SOCKS server with context
Set UDP association’s expiry duration
Set total UDP association to be kept simultaneously in server
UDP server’s bind address
- If
mode
istcp_only
, then it will still return this address forUDP_ASSOCIATE
command - Otherwise, UDP relay will bind to this address
Start serving
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Socks
impl !UnwindSafe for Socks
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more