#[repr(C)]
pub struct ares_options {
Show 19 fields pub flags: c_int, pub timeout: c_int, pub tries: c_int, pub ndots: c_int, pub udp_port: c_ushort, pub tcp_port: c_ushort, pub socket_send_buffer_size: c_int, pub socket_receive_buffer_size: c_int, pub servers: *mut in_addr, pub nservers: c_int, pub domains: *mut *mut c_char, pub ndomains: c_int, pub lookups: *mut c_char, pub sock_state_cb: ares_sock_state_cb, pub sock_state_cb_data: *mut c_void, pub sortlist: *mut apattern, pub nsort: c_int, pub ednspsz: c_int, pub resolvconf_path: *mut c_char,
}

Fields§

§flags: c_int§timeout: c_int§tries: c_int§ndots: c_int§udp_port: c_ushort§tcp_port: c_ushort§socket_send_buffer_size: c_int§socket_receive_buffer_size: c_int§servers: *mut in_addr§nservers: c_int§domains: *mut *mut c_char§ndomains: c_int§lookups: *mut c_char§sock_state_cb: ares_sock_state_cb§sock_state_cb_data: *mut c_void§sortlist: *mut apattern§nsort: c_int§ednspsz: c_int§resolvconf_path: *mut c_char

Trait Implementations§

source§

impl Clone for ares_options

source§

fn clone(&self) -> ares_options

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ares_options

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for ares_options

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.