[][src]Struct nginx::ngx_resolver_node_t

#[repr(C)]pub struct ngx_resolver_node_t {
    pub node: ngx_rbtree_node_t,
    pub queue: ngx_queue_t,
    pub name: *mut u_char,
    pub addr6: in6_addr,
    pub nlen: u_short,
    pub qlen: u_short,
    pub query: *mut u_char,
    pub query6: *mut u_char,
    pub u: ngx_resolver_node_t__bindgen_ty_1,
    pub code: u_char,
    pub naddrs: u_short,
    pub nsrvs: u_short,
    pub cnlen: u_short,
    pub u6: ngx_resolver_node_t__bindgen_ty_2,
    pub naddrs6: u_short,
    pub expire: time_t,
    pub valid: time_t,
    pub ttl: u32,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub last_connection: ngx_uint_t,
    pub waiting: *mut ngx_resolver_ctx_t,
}

Fields

node: ngx_rbtree_node_tqueue: ngx_queue_tname: *mut u_charaddr6: in6_addrnlen: u_shortqlen: u_shortquery: *mut u_charquery6: *mut u_charu: ngx_resolver_node_t__bindgen_ty_1code: u_charnaddrs: u_shortnsrvs: u_shortcnlen: u_shortu6: ngx_resolver_node_t__bindgen_ty_2naddrs6: u_shortexpire: time_tvalid: time_tttl: u32_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>last_connection: ngx_uint_twaiting: *mut ngx_resolver_ctx_t

Implementations

impl ngx_resolver_node_t[src]

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

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

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

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

pub fn new_bitfield_1(
    tcp: c_uint,
    tcp6: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for ngx_resolver_node_t[src]

impl Copy for ngx_resolver_node_t[src]

Auto Trait Implementations

impl RefUnwindSafe for ngx_resolver_node_t

impl !Send for ngx_resolver_node_t

impl !Sync for ngx_resolver_node_t

impl Unpin for ngx_resolver_node_t

impl UnwindSafe for ngx_resolver_node_t

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.