Struct tor_socksproto::Action [−][src]
Expand description
An action to take in response to a SOCKS handshake message.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.drain: usize
If nonzero, this many bytes should be drained from the client’s inputs.
reply: Vec<u8>
If nonempty, this reply should be sent to the client.
finished: bool
If true, then this handshake is over, either successfully or not.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Action
impl UnwindSafe for Action
Blanket Implementations
Mutably borrows from an owned value. Read more