Struct hyper_socks2::Connector
source · pub struct Connector<T: ToSocketAddrs>(_);
Implementations
Trait Implementations
sourceimpl<T> Connect for Connector<T>where
T: ToSocketAddrs + Send + Sync,
impl<T> Connect for Connector<T>where
T: ToSocketAddrs + Send + Sync,
type Future = Connection
type Future = Connection
A Future that will resolve to the connected Transport.
sourcefn connect(&self, dst: Destination) -> Self::Future
fn connect(&self, dst: Destination) -> Self::Future
Connect to a destination.
Auto Trait Implementations
impl<T> RefUnwindSafe for Connector<T>where
T: RefUnwindSafe,
impl<T> Send for Connector<T>where
T: Send,
impl<T> Sync for Connector<T>where
T: Sync,
impl<T> Unpin for Connector<T>where
T: Unpin,
impl<T> UnwindSafe for Connector<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