Struct ngx_stream_session_s

Source
#[repr(C)]
pub struct ngx_stream_session_s {
Show 21 fields pub signature: u32, pub connection: *mut ngx_connection_s, pub received: i64, pub start_sec: i64, pub start_msec: usize, pub log_handler: Option<unsafe extern "C" fn(*mut ngx_log_s, *mut u8, usize) -> *mut u8>, pub ctx: *mut *mut c_void, pub main_conf: *mut *mut c_void, pub srv_conf: *mut *mut c_void, pub virtual_names: *mut ngx_stream_virtual_names_t, pub upstream: *mut ngx_stream_upstream_t, pub upstream_states: *mut ngx_array_t, pub variables: *mut ngx_variable_value_t, pub ncaptures: usize, pub captures: *mut i32, pub captures_data: *mut u8, pub phase_handler: isize, pub status: usize, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub __bindgen_padding_0: [u8; 7],
}

Fields§

§signature: u32§connection: *mut ngx_connection_s§received: i64§start_sec: i64§start_msec: usize§log_handler: Option<unsafe extern "C" fn(*mut ngx_log_s, *mut u8, usize) -> *mut u8>§ctx: *mut *mut c_void§main_conf: *mut *mut c_void§srv_conf: *mut *mut c_void§virtual_names: *mut ngx_stream_virtual_names_t§upstream: *mut ngx_stream_upstream_t§upstream_states: *mut ngx_array_t§variables: *mut ngx_variable_value_t§ncaptures: usize§captures: *mut i32§captures_data: *mut u8§phase_handler: isize§status: usize§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§__bindgen_padding_0: [u8; 7]

Implementations§

Source§

impl ngx_stream_session_s

Source

pub fn ssl(&self) -> u32

Source

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

Source

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

Source

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

Source

pub fn stat_processing(&self) -> u32

Source

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

Source

pub unsafe fn stat_processing_raw(this: *const ngx_stream_session_s) -> u32

Source

pub unsafe fn set_stat_processing_raw(this: *mut ngx_stream_session_s, val: u32)

Source

pub fn health_check(&self) -> u32

Source

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

Source

pub unsafe fn health_check_raw(this: *const ngx_stream_session_s) -> u32

Source

pub unsafe fn set_health_check_raw(this: *mut ngx_stream_session_s, val: u32)

Source

pub fn limit_conn_status(&self) -> u32

Source

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

Source

pub unsafe fn limit_conn_status_raw(this: *const ngx_stream_session_s) -> u32

Source

pub unsafe fn set_limit_conn_status_raw( this: *mut ngx_stream_session_s, val: u32, )

Source

pub fn new_bitfield_1( ssl: u32, stat_processing: u32, health_check: u32, limit_conn_status: u32, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

Source§

impl Clone for ngx_stream_session_s

Source§

fn clone(&self) -> ngx_stream_session_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_stream_session_s

Source§

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

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

impl Copy for ngx_stream_session_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, dest: *mut u8)

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