Struct ngx_ssl_connection_s

Source
#[repr(C)]
pub struct ngx_ssl_connection_s {
Show 15 fields pub connection: *mut ssl_st, pub session_ctx: *mut ssl_ctx_st, pub last: isize, pub buf: *mut ngx_buf_s, pub buffer_size: usize, pub handler: Option<unsafe extern "C" fn(_: *mut ngx_connection_s)>, pub session: *mut ssl_session_st, pub save_session: Option<unsafe extern "C" fn(_: *mut ngx_connection_s)>, pub saved_read_handler: Option<unsafe extern "C" fn(_: *mut ngx_event_s)>, pub saved_write_handler: Option<unsafe extern "C" fn(_: *mut ngx_event_s)>, pub ocsp: *mut ngx_ssl_ocsp_s, pub early_buf: u8, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub __bindgen_padding_0: [u8; 5],
}

Fields§

§connection: *mut ssl_st§session_ctx: *mut ssl_ctx_st§last: isize§buf: *mut ngx_buf_s§buffer_size: usize§handler: Option<unsafe extern "C" fn(_: *mut ngx_connection_s)>§session: *mut ssl_session_st§save_session: Option<unsafe extern "C" fn(_: *mut ngx_connection_s)>§saved_read_handler: Option<unsafe extern "C" fn(_: *mut ngx_event_s)>§saved_write_handler: Option<unsafe extern "C" fn(_: *mut ngx_event_s)>§ocsp: *mut ngx_ssl_ocsp_s§early_buf: u8§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§__bindgen_padding_0: [u8; 5]

Implementations§

Source§

impl ngx_ssl_connection_s

Source

pub fn handshaked(&self) -> u32

Source

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

Source

pub unsafe fn handshaked_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_handshaked_raw(this: *mut ngx_ssl_connection_s, val: u32)

Source

pub fn handshake_rejected(&self) -> u32

Source

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

Source

pub unsafe fn handshake_rejected_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_handshake_rejected_raw( this: *mut ngx_ssl_connection_s, val: u32, )

Source

pub fn renegotiation(&self) -> u32

Source

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

Source

pub unsafe fn renegotiation_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_renegotiation_raw(this: *mut ngx_ssl_connection_s, val: u32)

Source

pub fn buffer(&self) -> u32

Source

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

Source

pub unsafe fn buffer_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_buffer_raw(this: *mut ngx_ssl_connection_s, val: u32)

Source

pub fn sendfile(&self) -> u32

Source

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

Source

pub unsafe fn sendfile_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_sendfile_raw(this: *mut ngx_ssl_connection_s, val: u32)

Source

pub fn no_wait_shutdown(&self) -> u32

Source

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

Source

pub unsafe fn no_wait_shutdown_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_no_wait_shutdown_raw( this: *mut ngx_ssl_connection_s, val: u32, )

Source

pub fn no_send_shutdown(&self) -> u32

Source

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

Source

pub unsafe fn no_send_shutdown_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_no_send_shutdown_raw( this: *mut ngx_ssl_connection_s, val: u32, )

Source

pub fn shutdown_without_free(&self) -> u32

Source

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

Source

pub unsafe fn shutdown_without_free_raw( this: *const ngx_ssl_connection_s, ) -> u32

Source

pub unsafe fn set_shutdown_without_free_raw( this: *mut ngx_ssl_connection_s, val: u32, )

Source

pub fn handshake_buffer_set(&self) -> u32

Source

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

Source

pub unsafe fn handshake_buffer_set_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_handshake_buffer_set_raw( this: *mut ngx_ssl_connection_s, val: u32, )

Source

pub fn session_timeout_set(&self) -> u32

Source

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

Source

pub unsafe fn session_timeout_set_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_session_timeout_set_raw( this: *mut ngx_ssl_connection_s, val: u32, )

Source

pub fn try_early_data(&self) -> u32

Source

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

Source

pub unsafe fn try_early_data_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_try_early_data_raw(this: *mut ngx_ssl_connection_s, val: u32)

Source

pub fn in_early(&self) -> u32

Source

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

Source

pub unsafe fn in_early_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_in_early_raw(this: *mut ngx_ssl_connection_s, val: u32)

Source

pub fn in_ocsp(&self) -> u32

Source

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

Source

pub unsafe fn in_ocsp_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_in_ocsp_raw(this: *mut ngx_ssl_connection_s, val: u32)

Source

pub fn early_preread(&self) -> u32

Source

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

Source

pub unsafe fn early_preread_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_early_preread_raw(this: *mut ngx_ssl_connection_s, val: u32)

Source

pub fn write_blocked(&self) -> u32

Source

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

Source

pub unsafe fn write_blocked_raw(this: *const ngx_ssl_connection_s) -> u32

Source

pub unsafe fn set_write_blocked_raw(this: *mut ngx_ssl_connection_s, val: u32)

Source

pub fn new_bitfield_1( handshaked: u32, handshake_rejected: u32, renegotiation: u32, buffer: u32, sendfile: u32, no_wait_shutdown: u32, no_send_shutdown: u32, shutdown_without_free: u32, handshake_buffer_set: u32, session_timeout_set: u32, try_early_data: u32, in_early: u32, in_ocsp: u32, early_preread: u32, write_blocked: u32, ) -> __BindgenBitfieldUnit<[u8; 2]>

Trait Implementations§

Source§

impl Clone for ngx_ssl_connection_s

Source§

fn clone(&self) -> ngx_ssl_connection_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_ssl_connection_s

Source§

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

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

impl Copy for ngx_ssl_connection_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.