Struct tor_socksproto::SocksRequest
source ·
[−]pub struct SocksRequest { /* fields omitted */ }
Expand description
A completed SOCKS request, as negotiated on a SOCKS connection.
Once this request is done, we know where to connect. Don’t discard this object immediately: Use it to report success or failure.
Implementations
Format a reply to this request, indicating success or failure.
Note that an address should be provided only when the request was for a RESOLVE.
Return the negotiated version (4 or 5).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SocksRequest
impl Send for SocksRequest
impl Sync for SocksRequest
impl Unpin for SocksRequest
impl UnwindSafe for SocksRequest
Blanket Implementations
Mutably borrows from an owned value. Read more