Struct dns_lookup::AddrInfoHints [] [src]

pub struct AddrInfoHints {
    pub socktype: i32,
    pub protocol: i32,
    pub address: i32,
    pub flags: i32,
}

A struct used as the hints argument to getaddrinfo.

Fields

Type of this socket. 0 for none.

Values are defined by the libc on your system.

Protcol for this socket. 0 for none.

Values are defined by the libc on your system.

Address family for this socket. 0 for none.

Values are defined by the libc on your system.

Optional bitmask arguments. Bitwise OR bitflags to change the behaviour of getaddrinfo. 0 for none.

Values are defined by the libc on your system.

Trait Implementations

impl Copy for AddrInfoHints
[src]

impl Clone for AddrInfoHints
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AddrInfoHints
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for AddrInfoHints
[src]

[src]

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

[src]

This method tests for !=.

impl Default for AddrInfoHints
[src]

[src]

Generate a blank AddrInfoHints struct, so new values can easily be specified.

Auto Trait Implementations

impl Send for AddrInfoHints

impl Sync for AddrInfoHints