pub struct AuthMethod;Expand description
socks5 auth method
Implementations§
Source§impl AuthMethod
impl AuthMethod
Sourcepub fn is_iana_reserved(m: u8) -> bool
pub fn is_iana_reserved(m: u8) -> bool
check method is IANA reserved
Sourcepub fn is_reserved(m: u8) -> bool
pub fn is_reserved(m: u8) -> bool
check method is self reserved
check method is unavailable
no acceptable auth method
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