[][src]Struct nginx::ngx_resolver_ctx_s

#[repr(C)]pub struct ngx_resolver_ctx_s {
    pub next: *mut ngx_resolver_ctx_t,
    pub resolver: *mut ngx_resolver_t,
    pub node: *mut ngx_resolver_node_t,
    pub ident: ngx_int_t,
    pub state: ngx_int_t,
    pub name: ngx_str_t,
    pub service: ngx_str_t,
    pub valid: time_t,
    pub naddrs: ngx_uint_t,
    pub addrs: *mut ngx_resolver_addr_t,
    pub addr: ngx_resolver_addr_t,
    pub sin: sockaddr_in,
    pub count: ngx_uint_t,
    pub nsrvs: ngx_uint_t,
    pub srvs: *mut ngx_resolver_srv_name_t,
    pub handler: ngx_resolver_handler_pt,
    pub data: *mut c_void,
    pub timeout: ngx_msec_t,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub recursion: ngx_uint_t,
    pub event: *mut ngx_event_t,
}

Fields

next: *mut ngx_resolver_ctx_tresolver: *mut ngx_resolver_tnode: *mut ngx_resolver_node_tident: ngx_int_tstate: ngx_int_tname: ngx_str_tservice: ngx_str_tvalid: time_tnaddrs: ngx_uint_taddrs: *mut ngx_resolver_addr_taddr: ngx_resolver_addr_tsin: sockaddr_incount: ngx_uint_tnsrvs: ngx_uint_tsrvs: *mut ngx_resolver_srv_name_thandler: ngx_resolver_handler_ptdata: *mut c_voidtimeout: ngx_msec_t_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>recursion: ngx_uint_tevent: *mut ngx_event_t

Implementations

impl ngx_resolver_ctx_s[src]

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

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

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

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

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

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

pub fn new_bitfield_1(
    quick: c_uint,
    async_: c_uint,
    cancelable: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for ngx_resolver_ctx_s[src]

impl Copy for ngx_resolver_ctx_s[src]

impl Debug for ngx_resolver_ctx_s[src]

Auto Trait Implementations

impl RefUnwindSafe for ngx_resolver_ctx_s

impl !Send for ngx_resolver_ctx_s

impl !Sync for ngx_resolver_ctx_s

impl Unpin for ngx_resolver_ctx_s

impl UnwindSafe for ngx_resolver_ctx_s

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.