[][src]Struct dns_lookup::AddrInfo

pub struct AddrInfo {
    pub socktype: i32,
    pub protocol: i32,
    pub address: i32,
    pub sockaddr: SocketAddr,
    pub canonname: Option<String>,
    pub flags: i32,
}

Struct that stores socket information, as returned by getaddrinfo.

This maps to the same definition provided by libc backends.

Fields

socktype: i32

Type of this socket.

Values are defined by the libc on your system.

protocol: i32

Protcol family for this socket.

Values are defined by the libc on your system.

address: i32

Address family for this socket (usually matches protocol family).

Values are defined by the libc on your system.

sockaddr: SocketAddr

Socket address for this socket, usually containing an actual IP Address and port.

canonname: Option<String>

If requested, this is the canonical name for this socket/host.

flags: i32

Optional bitmask arguments, usually set to zero.

Trait Implementations

impl PartialEq<AddrInfo> for AddrInfo[src]

impl Clone for AddrInfo[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for AddrInfo[src]

Auto Trait Implementations

impl Send for AddrInfo

impl Sync for AddrInfo

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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.

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

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

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