[][src]Struct libresolv_sys::__res_state

#[repr(C)]pub struct __res_state {
    pub retrans: c_int,
    pub retry: c_int,
    pub options: c_ulong,
    pub nscount: c_int,
    pub nsaddr_list: [sockaddr_in; 3],
    pub id: c_ushort,
    pub dnsrch: [*mut c_char; 7],
    pub defdname: [c_char; 256],
    pub pfcode: c_ulong,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4], u32>,
    pub sort_list: [__res_state__bindgen_ty_1; 10],
    pub __glibc_unused_qhook: *mut c_void,
    pub __glibc_unused_rhook: *mut c_void,
    pub res_h_errno: c_int,
    pub _vcsock: c_int,
    pub _flags: c_uint,
    pub _u: __res_state__bindgen_ty_2,
}

Fields

retrans: c_intretry: c_intoptions: c_ulongnscount: c_intnsaddr_list: [sockaddr_in; 3]id: c_ushortdnsrch: [*mut c_char; 7]defdname: [c_char; 256]pfcode: c_ulong_bitfield_1: __BindgenBitfieldUnit<[u8; 4], u32>sort_list: [__res_state__bindgen_ty_1; 10]__glibc_unused_qhook: *mut c_void__glibc_unused_rhook: *mut c_voidres_h_errno: c_int_vcsock: c_int_flags: c_uint_u: __res_state__bindgen_ty_2

Implementations

impl __res_state[src]

pub fn ndots(&self) -> c_uint[src]

pub fn set_ndots(&mut self, val: c_uint)[src]

pub fn nsort(&self) -> c_uint[src]

pub fn set_nsort(&mut self, val: c_uint)[src]

pub fn ipv6_unavail(&self) -> c_uint[src]

pub fn set_ipv6_unavail(&mut self, val: c_uint)[src]

pub fn unused(&self) -> c_uint[src]

pub fn set_unused(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    ndots: c_uint,
    nsort: c_uint,
    ipv6_unavail: c_uint,
    unused: c_uint
) -> __BindgenBitfieldUnit<[u8; 4], u32>
[src]

Trait Implementations

impl Clone for __res_state[src]

impl Copy for __res_state[src]

impl Default for __res_state[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, 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.