#[repr(C)]pub struct ngx_connection_s {Show 30 fields
pub data: *mut c_void,
pub read: *mut ngx_event_s,
pub write: *mut ngx_event_s,
pub fd: i32,
pub recv: Option<unsafe extern "C" fn(_: *mut ngx_connection_s, _: *mut u8, _: usize) -> isize>,
pub send: Option<unsafe extern "C" fn(_: *mut ngx_connection_s, _: *mut u8, _: usize) -> isize>,
pub recv_chain: Option<unsafe extern "C" fn(_: *mut ngx_connection_s, _: *mut ngx_chain_s, _: i64) -> isize>,
pub send_chain: Option<unsafe extern "C" fn(_: *mut ngx_connection_s, _: *mut ngx_chain_s, _: i64) -> *mut ngx_chain_s>,
pub listening: *mut ngx_listening_s,
pub sent: i64,
pub log: *mut ngx_log_s,
pub pool: *mut ngx_pool_s,
pub type_: i32,
pub sockaddr: *mut sockaddr,
pub socklen: u32,
pub addr_text: ngx_str_t,
pub proxy_protocol: *mut ngx_proxy_protocol_s,
pub quic: *mut ngx_quic_stream_s,
pub ssl: *mut ngx_ssl_connection_s,
pub udp: *mut ngx_udp_connection_s,
pub local_sockaddr: *mut sockaddr,
pub local_socklen: u32,
pub buffer: *mut ngx_buf_s,
pub queue: ngx_queue_s,
pub number: u64,
pub start_time: usize,
pub requests: usize,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub sendfile_task: *mut ngx_thread_task_s,
}
Fields§
§data: *mut c_void
§read: *mut ngx_event_s
§write: *mut ngx_event_s
§fd: i32
§recv: Option<unsafe extern "C" fn(_: *mut ngx_connection_s, _: *mut u8, _: usize) -> isize>
§send: Option<unsafe extern "C" fn(_: *mut ngx_connection_s, _: *mut u8, _: usize) -> isize>
§recv_chain: Option<unsafe extern "C" fn(_: *mut ngx_connection_s, _: *mut ngx_chain_s, _: i64) -> isize>
§send_chain: Option<unsafe extern "C" fn(_: *mut ngx_connection_s, _: *mut ngx_chain_s, _: i64) -> *mut ngx_chain_s>
§listening: *mut ngx_listening_s
§sent: i64
§log: *mut ngx_log_s
§pool: *mut ngx_pool_s
§type_: i32
§sockaddr: *mut sockaddr
§socklen: u32
§addr_text: ngx_str_t
§proxy_protocol: *mut ngx_proxy_protocol_s
§quic: *mut ngx_quic_stream_s
§ssl: *mut ngx_ssl_connection_s
§udp: *mut ngx_udp_connection_s
§local_sockaddr: *mut sockaddr
§local_socklen: u32
§buffer: *mut ngx_buf_s
§queue: ngx_queue_s
§number: u64
§start_time: usize
§requests: usize
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>
§sendfile_task: *mut ngx_thread_task_s
Implementations§
Source§impl ngx_connection_s
impl ngx_connection_s
pub fn buffered(&self) -> u32
pub fn set_buffered(&mut self, val: u32)
pub unsafe fn buffered_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_buffered_raw(this: *mut ngx_connection_s, val: u32)
pub fn log_error(&self) -> u32
pub fn set_log_error(&mut self, val: u32)
pub unsafe fn log_error_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_log_error_raw(this: *mut ngx_connection_s, val: u32)
pub fn timedout(&self) -> u32
pub fn set_timedout(&mut self, val: u32)
pub unsafe fn timedout_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_timedout_raw(this: *mut ngx_connection_s, val: u32)
pub fn error(&self) -> u32
pub fn set_error(&mut self, val: u32)
pub unsafe fn error_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_error_raw(this: *mut ngx_connection_s, val: u32)
pub fn destroyed(&self) -> u32
pub fn set_destroyed(&mut self, val: u32)
pub unsafe fn destroyed_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_destroyed_raw(this: *mut ngx_connection_s, val: u32)
pub fn pipeline(&self) -> u32
pub fn set_pipeline(&mut self, val: u32)
pub unsafe fn pipeline_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_pipeline_raw(this: *mut ngx_connection_s, val: u32)
pub fn idle(&self) -> u32
pub fn set_idle(&mut self, val: u32)
pub unsafe fn idle_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_idle_raw(this: *mut ngx_connection_s, val: u32)
pub fn reusable(&self) -> u32
pub fn set_reusable(&mut self, val: u32)
pub unsafe fn reusable_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_reusable_raw(this: *mut ngx_connection_s, val: u32)
pub fn close(&self) -> u32
pub fn set_close(&mut self, val: u32)
pub unsafe fn close_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_close_raw(this: *mut ngx_connection_s, val: u32)
pub fn sendfile(&self) -> u32
pub fn set_sendfile(&mut self, val: u32)
pub unsafe fn sendfile_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_sendfile_raw(this: *mut ngx_connection_s, val: u32)
pub fn sndlowat(&self) -> u32
pub fn set_sndlowat(&mut self, val: u32)
pub unsafe fn sndlowat_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_sndlowat_raw(this: *mut ngx_connection_s, val: u32)
pub fn tcp_nodelay(&self) -> u32
pub fn set_tcp_nodelay(&mut self, val: u32)
pub unsafe fn tcp_nodelay_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_tcp_nodelay_raw(this: *mut ngx_connection_s, val: u32)
pub fn tcp_nopush(&self) -> u32
pub fn set_tcp_nopush(&mut self, val: u32)
pub unsafe fn tcp_nopush_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_tcp_nopush_raw(this: *mut ngx_connection_s, val: u32)
pub fn need_last_buf(&self) -> u32
pub fn set_need_last_buf(&mut self, val: u32)
pub unsafe fn need_last_buf_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_need_last_buf_raw(this: *mut ngx_connection_s, val: u32)
pub fn need_flush_buf(&self) -> u32
pub fn set_need_flush_buf(&mut self, val: u32)
pub unsafe fn need_flush_buf_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_need_flush_buf_raw(this: *mut ngx_connection_s, val: u32)
pub fn busy_count(&self) -> u32
pub fn set_busy_count(&mut self, val: u32)
pub unsafe fn busy_count_raw(this: *const ngx_connection_s) -> u32
pub unsafe fn set_busy_count_raw(this: *mut ngx_connection_s, val: u32)
pub fn new_bitfield_1( buffered: u32, log_error: u32, timedout: u32, error: u32, destroyed: u32, pipeline: u32, idle: u32, reusable: u32, close: u32, shared: u32, sendfile: u32, sndlowat: u32, tcp_nodelay: u32, tcp_nopush: u32, need_last_buf: u32, need_flush_buf: u32, busy_count: u32, ) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations§
Source§impl Clone for ngx_connection_s
impl Clone for ngx_connection_s
Source§fn clone(&self) -> ngx_connection_s
fn clone(&self) -> ngx_connection_s
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_connection_s
impl Debug for ngx_connection_s
impl Copy for ngx_connection_s
Auto Trait Implementations§
impl Freeze for ngx_connection_s
impl RefUnwindSafe for ngx_connection_s
impl !Send for ngx_connection_s
impl !Sync for ngx_connection_s
impl Unpin for ngx_connection_s
impl UnwindSafe for ngx_connection_s
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