[][src]Struct dns_lookup::AddrInfoHints

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

socktype: i32

Type of this socket. 0 for none.

Values are defined by the libc on your system.

protocol: i32

Protcol for this socket. 0 for none.

Values are defined by the libc on your system.

address: i32

Address family for this socket. 0 for none.

Values are defined by the libc on your system.

flags: i32

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 PartialEq<AddrInfoHints> for AddrInfoHints[src]

impl Copy for AddrInfoHints[src]

impl Clone for AddrInfoHints[src]

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

Performs copy-assignment from source. Read more

impl Default for AddrInfoHints[src]

fn default() -> Self[src]

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

impl Debug for AddrInfoHints[src]

Auto Trait Implementations

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]