Struct ngx_listening_s

Source
#[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

Source

pub fn open(&self) -> u32

Source

pub fn set_open(&mut self, val: u32)

Source

pub unsafe fn open_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_open_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn remain(&self) -> u32

Source

pub fn set_remain(&mut self, val: u32)

Source

pub unsafe fn remain_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_remain_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn ignore(&self) -> u32

Source

pub fn set_ignore(&mut self, val: u32)

Source

pub unsafe fn ignore_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_ignore_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn bound(&self) -> u32

Source

pub fn set_bound(&mut self, val: u32)

Source

pub unsafe fn bound_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_bound_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn inherited(&self) -> u32

Source

pub fn set_inherited(&mut self, val: u32)

Source

pub unsafe fn inherited_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_inherited_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn nonblocking_accept(&self) -> u32

Source

pub fn set_nonblocking_accept(&mut self, val: u32)

Source

pub unsafe fn nonblocking_accept_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_nonblocking_accept_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn listen(&self) -> u32

Source

pub fn set_listen(&mut self, val: u32)

Source

pub unsafe fn listen_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_listen_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn nonblocking(&self) -> u32

Source

pub fn set_nonblocking(&mut self, val: u32)

Source

pub unsafe fn nonblocking_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_nonblocking_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn shared(&self) -> u32

Source

pub fn set_shared(&mut self, val: u32)

Source

pub unsafe fn shared_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_shared_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn addr_ntop(&self) -> u32

Source

pub fn set_addr_ntop(&mut self, val: u32)

Source

pub unsafe fn addr_ntop_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_addr_ntop_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn wildcard(&self) -> u32

Source

pub fn set_wildcard(&mut self, val: u32)

Source

pub unsafe fn wildcard_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_wildcard_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn ipv6only(&self) -> u32

Source

pub fn set_ipv6only(&mut self, val: u32)

Source

pub unsafe fn ipv6only_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_ipv6only_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn reuseport(&self) -> u32

Source

pub fn set_reuseport(&mut self, val: u32)

Source

pub unsafe fn reuseport_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_reuseport_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn add_reuseport(&self) -> u32

Source

pub fn set_add_reuseport(&mut self, val: u32)

Source

pub unsafe fn add_reuseport_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_add_reuseport_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn keepalive(&self) -> u32

Source

pub fn set_keepalive(&mut self, val: u32)

Source

pub unsafe fn keepalive_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_keepalive_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn quic(&self) -> u32

Source

pub fn set_quic(&mut self, val: u32)

Source

pub unsafe fn quic_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_quic_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn deferred_accept(&self) -> u32

Source

pub fn set_deferred_accept(&mut self, val: u32)

Source

pub unsafe fn deferred_accept_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_deferred_accept_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn delete_deferred(&self) -> u32

Source

pub fn set_delete_deferred(&mut self, val: u32)

Source

pub unsafe fn delete_deferred_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_delete_deferred_raw(this: *mut ngx_listening_s, val: u32)

Source

pub fn add_deferred(&self) -> u32

Source

pub fn set_add_deferred(&mut self, val: u32)

Source

pub unsafe fn add_deferred_raw(this: *const ngx_listening_s) -> u32

Source

pub unsafe fn set_add_deferred_raw(this: *mut ngx_listening_s, val: u32)

Source

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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ngx_listening_s

Source§

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

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

impl Copy for ngx_listening_s

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

Source§

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>,

Source§

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>,

Source§

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.