[−][src]Enum tokio_socks::TargetAddr
A SOCKS connection target.
Variants
Ip(SocketAddr)
Connect to an IP address.
Domain(Cow<'a, str>, u16)
Connect to a fully-qualified domain name.
The domain name will be passed along to the proxy server and DNS lookup will happen there.
Methods
impl<'a> TargetAddr<'a>
[src]
pub fn to_owned(&self) -> TargetAddr<'static>
[src]
Creates owned TargetAddr
by cloning. It is usually used to eliminate the lifetime bound.
Trait Implementations
impl<'a> PartialEq<TargetAddr<'a>> for TargetAddr<'a>
[src]
fn eq(&self, other: &TargetAddr<'a>) -> bool
[src]
fn ne(&self, other: &TargetAddr<'a>) -> bool
[src]
impl<'a> Eq for TargetAddr<'a>
[src]
impl<'a> Debug for TargetAddr<'a>
[src]
impl<'a> ToSocketAddrs for TargetAddr<'a>
[src]
type Iter = Either<IntoIter<SocketAddr>, IntoIter<SocketAddr>>
Returned iterator over socket addresses which this type may correspond to. Read more
fn to_socket_addrs(&self) -> Result<Self::Iter>
[src]
Auto Trait Implementations
impl<'a> Send for TargetAddr<'a>
impl<'a> Sync for TargetAddr<'a>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.