Struct tor_socksproto::SocksHandshake
source ·
[−]pub struct SocksHandshake { /* fields omitted */ }
Expand description
An ongoing SOCKS handshake.
To perform a handshake, call the SocksHandshake::handshake
method repeatedly with new inputs, until the resulting Action
has finished
set to true.
Implementations
Try to advance a SocksHandshake, given some client input in
input
.
If there isn’t enough input, gives Error::Truncated. Other errors indicate a failure.
On success, return an Action describing what to tell the client, and how much of its input to consume.
Consume this handshake’s state; if it finished successfully, return a SocksRequest.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SocksHandshake
impl Send for SocksHandshake
impl Sync for SocksHandshake
impl Unpin for SocksHandshake
impl UnwindSafe for SocksHandshake
Blanket Implementations
Mutably borrows from an owned value. Read more