Struct tor_socksproto::Action
source · #[non_exhaustive]pub struct Action {
pub drain: usize,
pub reply: Vec<u8>,
pub finished: bool,
}
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 other party.
finished: bool
If true, then this handshake is over, either successfully or not.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more