[][src]Struct nginx::ngx_listening_s

#[repr(C)]pub struct ngx_listening_s {
    pub fd: ngx_socket_t,
    pub sockaddr: *mut sockaddr,
    pub socklen: socklen_t,
    pub addr_text_max_len: size_t,
    pub addr_text: ngx_str_t,
    pub type_: c_int,
    pub backlog: c_int,
    pub rcvbuf: c_int,
    pub sndbuf: c_int,
    pub keepidle: c_int,
    pub keepintvl: c_int,
    pub keepcnt: c_int,
    pub handler: ngx_connection_handler_pt,
    pub servers: *mut c_void,
    pub log: ngx_log_t,
    pub logp: *mut ngx_log_t,
    pub pool_size: size_t,
    pub post_accept_buffer_size: size_t,
    pub post_accept_timeout: ngx_msec_t,
    pub previous: *mut ngx_listening_t,
    pub connection: *mut ngx_connection_t,
    pub rbtree: ngx_rbtree_t,
    pub sentinel: ngx_rbtree_node_t,
    pub worker: ngx_uint_t,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3], u8>,
    pub fastopen: c_int,
}

Fields

fd: ngx_socket_tsockaddr: *mut sockaddrsocklen: socklen_taddr_text_max_len: size_taddr_text: ngx_str_ttype_: c_intbacklog: c_intrcvbuf: c_intsndbuf: c_intkeepidle: c_intkeepintvl: c_intkeepcnt: c_inthandler: ngx_connection_handler_ptservers: *mut c_voidlog: ngx_log_tlogp: *mut ngx_log_tpool_size: size_tpost_accept_buffer_size: size_tpost_accept_timeout: ngx_msec_tprevious: *mut ngx_listening_tconnection: *mut ngx_connection_trbtree: ngx_rbtree_tsentinel: ngx_rbtree_node_tworker: ngx_uint_t_bitfield_1: __BindgenBitfieldUnit<[u8; 3], u8>fastopen: c_int

Implementations

impl ngx_listening_s[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn new_bitfield_1(
    open: c_uint,
    remain: c_uint,
    ignore: c_uint,
    bound: c_uint,
    inherited: c_uint,
    nonblocking_accept: c_uint,
    listen: c_uint,
    nonblocking: c_uint,
    shared: c_uint,
    addr_ntop: c_uint,
    wildcard: c_uint,
    ipv6only: c_uint,
    reuseport: c_uint,
    add_reuseport: c_uint,
    keepalive: c_uint,
    deferred_accept: c_uint,
    delete_deferred: c_uint,
    add_deferred: c_uint
) -> __BindgenBitfieldUnit<[u8; 3], u8>
[src]

Trait Implementations

impl Clone for ngx_listening_s[src]

impl Copy for ngx_listening_s[src]

impl Debug for ngx_listening_s[src]

Auto Trait Implementations

impl RefUnwindSafe for ngx_listening_s

impl !Send for ngx_listening_s

impl !Sync for ngx_listening_s

impl Unpin for ngx_listening_s

impl UnwindSafe for ngx_listening_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.