pub struct ClientGreeting {
pub methods: Box<[AuthenticationMethod]>,
}Expand description
The client’s greeting (VER NMETHODS METHODS), the first message of a
SOCKS5 negotiation.
Fields§
§methods: Box<[AuthenticationMethod]>The authentication methods the client is willing to use, in order of preference. May include unassigned or private-use values; may be empty only if the peer tolerates it, as the specification expects at least one method.
Trait Implementations§
Source§impl Clone for ClientGreeting
impl Clone for ClientGreeting
Source§impl Debug for ClientGreeting
impl Debug for ClientGreeting
impl Eq for ClientGreeting
Source§impl Message for ClientGreeting
impl Message for ClientGreeting
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the exact number of bytes
Message::encode will append. Read moreSource§fn encode(&self, buffer: &mut Vec<u8>) -> Result<(), EncodeError>
fn encode(&self, buffer: &mut Vec<u8>) -> Result<(), EncodeError>
Appends the contiguous wire representation of this message to
buffer. Read moreSource§fn decode(source: &[u8]) -> Result<DecodeStatus<(Self, usize)>, DecodeError>
fn decode(source: &[u8]) -> Result<DecodeStatus<(Self, usize)>, DecodeError>
Attempts to parse a message from the front of
source. Read moreSource§impl PartialEq for ClientGreeting
impl PartialEq for ClientGreeting
impl StructuralPartialEq for ClientGreeting
Auto Trait Implementations§
impl Freeze for ClientGreeting
impl RefUnwindSafe for ClientGreeting
impl Send for ClientGreeting
impl Sync for ClientGreeting
impl Unpin for ClientGreeting
impl UnsafeUnpin for ClientGreeting
impl UnwindSafe for ClientGreeting
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