[][src]Enum koibumi_socks_core::SocketAddr

pub enum SocketAddr {
    Ipv4(SocketAddrV4),
    DomainName(SocketDomainName),
    Ipv6(SocketAddrV6),
}

This type represents a socket address used by SOCKS5.

The inner IP socket address types are defined in the std::net module. On the other hand, the inner domain name socket address type is defined in this own crate.

Variants

A socket address using an IPv4 address.

DomainName(SocketDomainName)

A socket address using a domain name.

A socket address using an IPv6 address.

Implementations

impl SocketAddr[src]

pub fn new(addr: Addr, port: u16) -> Self[src]

Constructs a socket address from an address and a port.

Trait Implementations

impl Clone for SocketAddr[src]

impl Debug for SocketAddr[src]

impl Display for SocketAddr[src]

impl Eq for SocketAddr[src]

impl FromStr for SocketAddr[src]

type Err = ParseSocketAddrError

The associated error which can be returned from parsing.

impl Hash for SocketAddr[src]

impl PartialEq<SocketAddr> for SocketAddr[src]

impl StructuralEq for SocketAddr[src]

impl StructuralPartialEq for SocketAddr[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.