Struct dns_lookup::AddrInfo [] [src]

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

Type of this socket.

Values are defined by the libc on your system.

Protcol family for this socket.

Values are defined by the libc on your system.

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

Values are defined by the libc on your system.

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

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

Optional bitmask arguments, usually set to zero.

Trait Implementations

impl Clone for AddrInfo
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AddrInfo
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for AddrInfo
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.