Struct socks5_impl::protocol::handshake::HandshakeMethod
source · #[repr(transparent)]pub struct HandshakeMethod(pub u8);
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
source§impl Clone for HandshakeMethod
impl Clone for HandshakeMethod
source§fn clone(&self) -> HandshakeMethod
fn clone(&self) -> HandshakeMethod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HandshakeMethod
impl Debug for HandshakeMethod
source§impl From<HandshakeMethod> for u8
impl From<HandshakeMethod> for u8
source§fn from(value: HandshakeMethod) -> Self
fn from(value: HandshakeMethod) -> Self
Converts to this type from the input type.
source§impl From<u8> for HandshakeMethod
impl From<u8> for HandshakeMethod
source§impl Hash for HandshakeMethod
impl Hash for HandshakeMethod
source§impl Ord for HandshakeMethod
impl Ord for HandshakeMethod
source§fn cmp(&self, other: &HandshakeMethod) -> Ordering
fn cmp(&self, other: &HandshakeMethod) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<HandshakeMethod> for HandshakeMethod
impl PartialEq<HandshakeMethod> for HandshakeMethod
source§fn eq(&self, other: &HandshakeMethod) -> bool
fn eq(&self, other: &HandshakeMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<HandshakeMethod> for HandshakeMethod
impl PartialOrd<HandshakeMethod> for HandshakeMethod
source§fn partial_cmp(&self, other: &HandshakeMethod) -> Option<Ordering>
fn partial_cmp(&self, other: &HandshakeMethod) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for HandshakeMethod
impl Eq for HandshakeMethod
impl StructuralEq for HandshakeMethod
impl StructuralPartialEq for HandshakeMethod
Auto Trait Implementations§
impl RefUnwindSafe for HandshakeMethod
impl Send for HandshakeMethod
impl Sync for HandshakeMethod
impl Unpin for HandshakeMethod
impl UnwindSafe for HandshakeMethod
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