Struct ngx_http_listen_opt_t

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

Source

pub fn set(&self) -> u32

Source

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

Source

pub unsafe fn set_raw(this: *const ngx_http_listen_opt_t) -> u32

Source

pub unsafe fn set_set_raw(this: *mut ngx_http_listen_opt_t, val: u32)

Source

pub fn default_server(&self) -> u32

Source

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

Source

pub unsafe fn default_server_raw(this: *const ngx_http_listen_opt_t) -> u32

Source

pub unsafe fn set_default_server_raw(this: *mut ngx_http_listen_opt_t, val: u32)

Source

pub fn bind(&self) -> u32

Source

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

Source

pub unsafe fn bind_raw(this: *const ngx_http_listen_opt_t) -> u32

Source

pub unsafe fn set_bind_raw(this: *mut ngx_http_listen_opt_t, 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_http_listen_opt_t) -> u32

Source

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

Source

pub fn ssl(&self) -> u32

Source

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

Source

pub unsafe fn ssl_raw(this: *const ngx_http_listen_opt_t) -> u32

Source

pub unsafe fn set_ssl_raw(this: *mut ngx_http_listen_opt_t, val: u32)

Source

pub fn http2(&self) -> u32

Source

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

Source

pub unsafe fn http2_raw(this: *const ngx_http_listen_opt_t) -> u32

Source

pub unsafe fn set_http2_raw(this: *mut ngx_http_listen_opt_t, 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_http_listen_opt_t) -> u32

Source

pub unsafe fn set_quic_raw(this: *mut ngx_http_listen_opt_t, 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_http_listen_opt_t) -> u32

Source

pub unsafe fn set_ipv6only_raw(this: *mut ngx_http_listen_opt_t, 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_http_listen_opt_t) -> u32

Source

pub unsafe fn set_deferred_accept_raw( this: *mut ngx_http_listen_opt_t, 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_http_listen_opt_t) -> u32

Source

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

Source

pub fn so_keepalive(&self) -> u32

Source

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

Source

pub unsafe fn so_keepalive_raw(this: *const ngx_http_listen_opt_t) -> u32

Source

pub unsafe fn set_so_keepalive_raw(this: *mut ngx_http_listen_opt_t, val: u32)

Source

pub fn proxy_protocol(&self) -> u32

Source

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

Source

pub unsafe fn proxy_protocol_raw(this: *const ngx_http_listen_opt_t) -> u32

Source

pub unsafe fn set_proxy_protocol_raw(this: *mut ngx_http_listen_opt_t, val: u32)

Source

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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ngx_http_listen_opt_t

Source§

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

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

impl Copy for ngx_http_listen_opt_t

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.