Enum hyper_socks2::Proxy
source · pub enum Proxy<T: ToSocketAddrs> {
Socks4 {
addrs: T,
user_id: String,
},
Socks5 {
addrs: T,
auth: Option<Auth>,
},
}Expand description
A SOCKS4/5 proxy information
Variants
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Proxy<T>where
T: RefUnwindSafe,
impl<T> Send for Proxy<T>where
T: Send,
impl<T> Sync for Proxy<T>where
T: Sync,
impl<T> Unpin for Proxy<T>where
T: Unpin,
impl<T> UnwindSafe for Proxy<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more