[−][src]Struct libresolv_sys::__res_state
Fields
retrans: c_int
retry: c_int
options: c_ulong
nscount: c_int
nsaddr_list: [sockaddr_in; 3]
id: c_ushort
dnsrch: [*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_void
res_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]
ndots: c_uint,
nsort: c_uint,
ipv6_unavail: c_uint,
unused: c_uint
) -> __BindgenBitfieldUnit<[u8; 4], u32>
Trait Implementations
impl Clone for __res_state
[src]
fn clone(&self) -> __res_state
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for __res_state
[src]
impl Default for __res_state
[src]
Auto Trait Implementations
impl RefUnwindSafe for __res_state
impl !Send for __res_state
impl !Sync for __res_state
impl Unpin for __res_state
impl UnwindSafe for __res_state
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,