Enum tokio_socks_unofficial::TargetAddr
[−]
[src]
pub enum TargetAddr { Ip(SocketAddr), Domain(ArrayString<[u8; 256]>, u16), }
Variants
Ip(SocketAddr)
Domain(ArrayString<[u8; 256]>, u16)
Trait Implementations
impl Debug for TargetAddr
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for TargetAddr
[src]
impl Clone for TargetAddr
[src]
fn clone(&self) -> TargetAddr
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for TargetAddr
[src]
fn eq(&self, __arg_0: &TargetAddr) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TargetAddr) -> bool
[src]
This method tests for !=
.
impl Eq for TargetAddr
[src]
impl Hash for TargetAddr
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more