#[repr(C)]pub struct ngx_listening_s {Show 26 fields
pub fd: i32,
pub sockaddr: *mut sockaddr,
pub socklen: u32,
pub addr_text_max_len: usize,
pub addr_text: ngx_str_t,
pub type_: i32,
pub backlog: i32,
pub rcvbuf: i32,
pub sndbuf: i32,
pub keepidle: i32,
pub keepintvl: i32,
pub keepcnt: i32,
pub handler: Option<unsafe extern "C" fn(_: *mut ngx_connection_s)>,
pub servers: *mut c_void,
pub log: ngx_log_s,
pub logp: *mut ngx_log_s,
pub pool_size: usize,
pub post_accept_buffer_size: usize,
pub previous: *mut ngx_listening_s,
pub connection: *mut ngx_connection_s,
pub rbtree: ngx_rbtree_s,
pub sentinel: ngx_rbtree_node_s,
pub worker: usize,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3]>,
pub fastopen: i32,
}
Fields§
§fd: i32
§sockaddr: *mut sockaddr
§socklen: u32
§addr_text_max_len: usize
§addr_text: ngx_str_t
§type_: i32
§backlog: i32
§rcvbuf: i32
§sndbuf: i32
§keepidle: i32
§keepintvl: i32
§keepcnt: i32
§handler: Option<unsafe extern "C" fn(_: *mut ngx_connection_s)>
§servers: *mut c_void
§log: ngx_log_s
§logp: *mut ngx_log_s
§pool_size: usize
§post_accept_buffer_size: usize
§previous: *mut ngx_listening_s
§connection: *mut ngx_connection_s
§rbtree: ngx_rbtree_s
§sentinel: ngx_rbtree_node_s
§worker: usize
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 3]>
§fastopen: i32
Implementations§
Source§impl ngx_listening_s
impl ngx_listening_s
pub fn open(&self) -> u32
pub fn set_open(&mut self, val: u32)
pub unsafe fn open_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_open_raw(this: *mut ngx_listening_s, val: u32)
pub fn remain(&self) -> u32
pub fn set_remain(&mut self, val: u32)
pub unsafe fn remain_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_remain_raw(this: *mut ngx_listening_s, val: u32)
pub fn ignore(&self) -> u32
pub fn set_ignore(&mut self, val: u32)
pub unsafe fn ignore_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_ignore_raw(this: *mut ngx_listening_s, val: u32)
pub fn bound(&self) -> u32
pub fn set_bound(&mut self, val: u32)
pub unsafe fn bound_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_bound_raw(this: *mut ngx_listening_s, val: u32)
pub fn inherited(&self) -> u32
pub fn set_inherited(&mut self, val: u32)
pub unsafe fn inherited_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_inherited_raw(this: *mut ngx_listening_s, val: u32)
pub fn nonblocking_accept(&self) -> u32
pub fn set_nonblocking_accept(&mut self, val: u32)
pub unsafe fn nonblocking_accept_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_nonblocking_accept_raw(this: *mut ngx_listening_s, val: u32)
pub fn listen(&self) -> u32
pub fn set_listen(&mut self, val: u32)
pub unsafe fn listen_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_listen_raw(this: *mut ngx_listening_s, val: u32)
pub fn nonblocking(&self) -> u32
pub fn set_nonblocking(&mut self, val: u32)
pub unsafe fn nonblocking_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_nonblocking_raw(this: *mut ngx_listening_s, val: u32)
pub fn addr_ntop(&self) -> u32
pub fn set_addr_ntop(&mut self, val: u32)
pub unsafe fn addr_ntop_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_addr_ntop_raw(this: *mut ngx_listening_s, val: u32)
pub fn wildcard(&self) -> u32
pub fn set_wildcard(&mut self, val: u32)
pub unsafe fn wildcard_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_wildcard_raw(this: *mut ngx_listening_s, val: u32)
pub fn ipv6only(&self) -> u32
pub fn set_ipv6only(&mut self, val: u32)
pub unsafe fn ipv6only_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_ipv6only_raw(this: *mut ngx_listening_s, val: u32)
pub fn reuseport(&self) -> u32
pub fn set_reuseport(&mut self, val: u32)
pub unsafe fn reuseport_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_reuseport_raw(this: *mut ngx_listening_s, val: u32)
pub fn add_reuseport(&self) -> u32
pub fn set_add_reuseport(&mut self, val: u32)
pub unsafe fn add_reuseport_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_add_reuseport_raw(this: *mut ngx_listening_s, val: u32)
pub fn keepalive(&self) -> u32
pub fn set_keepalive(&mut self, val: u32)
pub unsafe fn keepalive_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_keepalive_raw(this: *mut ngx_listening_s, val: u32)
pub fn quic(&self) -> u32
pub fn set_quic(&mut self, val: u32)
pub unsafe fn quic_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_quic_raw(this: *mut ngx_listening_s, val: u32)
pub fn deferred_accept(&self) -> u32
pub fn set_deferred_accept(&mut self, val: u32)
pub unsafe fn deferred_accept_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_deferred_accept_raw(this: *mut ngx_listening_s, val: u32)
pub fn delete_deferred(&self) -> u32
pub fn set_delete_deferred(&mut self, val: u32)
pub unsafe fn delete_deferred_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_delete_deferred_raw(this: *mut ngx_listening_s, val: u32)
pub fn add_deferred(&self) -> u32
pub fn set_add_deferred(&mut self, val: u32)
pub unsafe fn add_deferred_raw(this: *const ngx_listening_s) -> u32
pub unsafe fn set_add_deferred_raw(this: *mut ngx_listening_s, val: u32)
pub fn new_bitfield_1( open: u32, remain: u32, ignore: u32, bound: u32, inherited: u32, nonblocking_accept: u32, listen: u32, nonblocking: u32, shared: u32, addr_ntop: u32, wildcard: u32, ipv6only: u32, reuseport: u32, add_reuseport: u32, keepalive: u32, quic: u32, deferred_accept: u32, delete_deferred: u32, add_deferred: u32, ) -> __BindgenBitfieldUnit<[u8; 3]>
Trait Implementations§
Source§impl Clone for ngx_listening_s
impl Clone for ngx_listening_s
Source§fn clone(&self) -> ngx_listening_s
fn clone(&self) -> ngx_listening_s
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ngx_listening_s
impl Debug for ngx_listening_s
impl Copy for ngx_listening_s
Auto Trait Implementations§
impl Freeze for ngx_listening_s
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more