#[repr(C)]pub struct ngx_http_listen_opt_t {Show 13 fields
pub sockaddr: *mut sockaddr,
pub socklen: u32,
pub addr_text: ngx_str_t,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>,
pub backlog: i32,
pub rcvbuf: i32,
pub sndbuf: i32,
pub type_: i32,
pub fastopen: i32,
pub tcp_keepidle: i32,
pub tcp_keepintvl: i32,
pub tcp_keepcnt: i32,
}
Fields§
§sockaddr: *mut sockaddr
§socklen: u32
§addr_text: ngx_str_t
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>
§backlog: i32
§rcvbuf: i32
§sndbuf: i32
§type_: i32
§fastopen: i32
§tcp_keepidle: i32
§tcp_keepintvl: i32
§tcp_keepcnt: i32
Implementations§
Source§impl ngx_http_listen_opt_t
impl ngx_http_listen_opt_t
pub fn set(&self) -> u32
pub fn set_set(&mut self, val: u32)
pub unsafe fn set_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_set_raw(this: *mut ngx_http_listen_opt_t, val: u32)
pub fn default_server(&self) -> u32
pub fn set_default_server(&mut self, val: u32)
pub unsafe fn default_server_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_default_server_raw(this: *mut ngx_http_listen_opt_t, val: u32)
pub fn bind(&self) -> u32
pub fn set_bind(&mut self, val: u32)
pub unsafe fn bind_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_bind_raw(this: *mut ngx_http_listen_opt_t, val: u32)
pub fn wildcard(&self) -> u32
pub fn set_wildcard(&mut self, val: u32)
pub unsafe fn wildcard_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_wildcard_raw(this: *mut ngx_http_listen_opt_t, val: u32)
pub fn ssl(&self) -> u32
pub fn set_ssl(&mut self, val: u32)
pub unsafe fn ssl_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_ssl_raw(this: *mut ngx_http_listen_opt_t, val: u32)
pub fn http2(&self) -> u32
pub fn set_http2(&mut self, val: u32)
pub unsafe fn http2_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_http2_raw(this: *mut ngx_http_listen_opt_t, val: u32)
pub fn quic(&self) -> u32
pub fn set_quic(&mut self, val: u32)
pub unsafe fn quic_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_quic_raw(this: *mut ngx_http_listen_opt_t, val: u32)
pub fn ipv6only(&self) -> u32
pub fn set_ipv6only(&mut self, val: u32)
pub unsafe fn ipv6only_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_ipv6only_raw(this: *mut ngx_http_listen_opt_t, 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_http_listen_opt_t) -> u32
pub unsafe fn set_deferred_accept_raw( this: *mut ngx_http_listen_opt_t, val: u32, )
pub fn reuseport(&self) -> u32
pub fn set_reuseport(&mut self, val: u32)
pub unsafe fn reuseport_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_reuseport_raw(this: *mut ngx_http_listen_opt_t, val: u32)
pub fn so_keepalive(&self) -> u32
pub fn set_so_keepalive(&mut self, val: u32)
pub unsafe fn so_keepalive_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_so_keepalive_raw(this: *mut ngx_http_listen_opt_t, val: u32)
pub fn proxy_protocol(&self) -> u32
pub fn set_proxy_protocol(&mut self, val: u32)
pub unsafe fn proxy_protocol_raw(this: *const ngx_http_listen_opt_t) -> u32
pub unsafe fn set_proxy_protocol_raw(this: *mut ngx_http_listen_opt_t, val: u32)
pub fn new_bitfield_1( set: u32, default_server: u32, bind: u32, wildcard: u32, ssl: u32, http2: u32, quic: u32, ipv6only: u32, deferred_accept: u32, reuseport: u32, so_keepalive: u32, proxy_protocol: u32, ) -> __BindgenBitfieldUnit<[u8; 2]>
Trait Implementations§
Source§impl Clone for ngx_http_listen_opt_t
impl Clone for ngx_http_listen_opt_t
Source§fn clone(&self) -> ngx_http_listen_opt_t
fn clone(&self) -> ngx_http_listen_opt_t
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_http_listen_opt_t
impl Debug for ngx_http_listen_opt_t
impl Copy for ngx_http_listen_opt_t
Auto Trait Implementations§
impl Freeze for ngx_http_listen_opt_t
impl RefUnwindSafe for ngx_http_listen_opt_t
impl !Send for ngx_http_listen_opt_t
impl !Sync for ngx_http_listen_opt_t
impl Unpin for ngx_http_listen_opt_t
impl UnwindSafe for ngx_http_listen_opt_t
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