pub enum Auth {
NoAuth,
HTTPAuthorizationHeader(String),
UserPass(String, String),
}Variants§
NoAuth
Use when no authentication is required
HTTPAuthorizationHeader(String)
Header name seperated by semicolon and header value such as Auth::HTTPAuthorizationHeader("Proxy-Authorization: Basic <encoded>".into())
UserPass(String, String)
Implements user password authentication for SOCKS5
Auto Trait Implementations§
impl Freeze for Auth
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnsafeUnpin for Auth
impl UnwindSafe for Auth
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