#[repr(u8)]pub enum AuthMethod {
NoAuth = 0,
UsernameAndPassword = 2,
}Expand description
A socks5 authentication method.
Variants§
Implementations§
Trait Implementations§
Source§impl ByteRead for AuthMethod
impl ByteRead for AuthMethod
Source§impl ByteWrite for AuthMethod
impl ByteWrite for AuthMethod
Source§impl Clone for AuthMethod
impl Clone for AuthMethod
Source§fn clone(&self) -> AuthMethod
fn clone(&self) -> AuthMethod
Returns a duplicate 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 AuthMethod
impl Debug for AuthMethod
Source§impl Display for AuthMethod
impl Display for AuthMethod
Source§impl PartialEq for AuthMethod
impl PartialEq for AuthMethod
Source§impl U8ReprEnum for AuthMethod
impl U8ReprEnum for AuthMethod
impl Copy for AuthMethod
impl Eq for AuthMethod
impl StructuralPartialEq for AuthMethod
Auto Trait Implementations§
impl Freeze for AuthMethod
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnwindSafe for AuthMethod
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