[][src]Struct nginx::ngx_connection_s

#[repr(C)]pub struct ngx_connection_s {
    pub data: *mut c_void,
    pub read: *mut ngx_event_t,
    pub write: *mut ngx_event_t,
    pub fd: ngx_socket_t,
    pub recv: ngx_recv_pt,
    pub send: ngx_send_pt,
    pub recv_chain: ngx_recv_chain_pt,
    pub send_chain: ngx_send_chain_pt,
    pub listening: *mut ngx_listening_t,
    pub sent: off_t,
    pub log: *mut ngx_log_t,
    pub pool: *mut ngx_pool_t,
    pub type_: c_int,
    pub sockaddr: *mut sockaddr,
    pub socklen: socklen_t,
    pub addr_text: ngx_str_t,
    pub proxy_protocol: *mut ngx_proxy_protocol_t,
    pub ssl: *mut ngx_ssl_connection_t,
    pub udp: *mut ngx_udp_connection_t,
    pub local_sockaddr: *mut sockaddr,
    pub local_socklen: socklen_t,
    pub buffer: *mut ngx_buf_t,
    pub queue: ngx_queue_t,
    pub number: ngx_atomic_uint_t,
    pub requests: ngx_uint_t,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4], u8>,
    pub sendfile_task: *mut ngx_thread_task_t,
}

Fields

data: *mut c_voidread: *mut ngx_event_twrite: *mut ngx_event_tfd: ngx_socket_trecv: ngx_recv_ptsend: ngx_send_ptrecv_chain: ngx_recv_chain_ptsend_chain: ngx_send_chain_ptlistening: *mut ngx_listening_tsent: off_tlog: *mut ngx_log_tpool: *mut ngx_pool_ttype_: c_intsockaddr: *mut sockaddrsocklen: socklen_taddr_text: ngx_str_tproxy_protocol: *mut ngx_proxy_protocol_tssl: *mut ngx_ssl_connection_tudp: *mut ngx_udp_connection_tlocal_sockaddr: *mut sockaddrlocal_socklen: socklen_tbuffer: *mut ngx_buf_tqueue: ngx_queue_tnumber: ngx_atomic_uint_trequests: ngx_uint_t_bitfield_1: __BindgenBitfieldUnit<[u8; 4], u8>sendfile_task: *mut ngx_thread_task_t

Implementations

impl ngx_connection_s[src]

pub fn buffered(&self) -> c_uint[src]

pub fn set_buffered(&mut self, val: c_uint)[src]

pub fn log_error(&self) -> c_uint[src]

pub fn set_log_error(&mut self, val: c_uint)[src]

pub fn timedout(&self) -> c_uint[src]

pub fn set_timedout(&mut self, val: c_uint)[src]

pub fn error(&self) -> c_uint[src]

pub fn set_error(&mut self, val: c_uint)[src]

pub fn destroyed(&self) -> c_uint[src]

pub fn set_destroyed(&mut self, val: c_uint)[src]

pub fn idle(&self) -> c_uint[src]

pub fn set_idle(&mut self, val: c_uint)[src]

pub fn reusable(&self) -> c_uint[src]

pub fn set_reusable(&mut self, val: c_uint)[src]

pub fn close(&self) -> c_uint[src]

pub fn set_close(&mut self, val: c_uint)[src]

pub fn shared(&self) -> c_uint[src]

pub fn set_shared(&mut self, val: c_uint)[src]

pub fn sendfile(&self) -> c_uint[src]

pub fn set_sendfile(&mut self, val: c_uint)[src]

pub fn sndlowat(&self) -> c_uint[src]

pub fn set_sndlowat(&mut self, val: c_uint)[src]

pub fn tcp_nodelay(&self) -> c_uint[src]

pub fn set_tcp_nodelay(&mut self, val: c_uint)[src]

pub fn tcp_nopush(&self) -> c_uint[src]

pub fn set_tcp_nopush(&mut self, val: c_uint)[src]

pub fn need_last_buf(&self) -> c_uint[src]

pub fn set_need_last_buf(&mut self, val: c_uint)[src]

pub fn busy_count(&self) -> c_uint[src]

pub fn set_busy_count(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    buffered: c_uint,
    log_error: c_uint,
    timedout: c_uint,
    error: c_uint,
    destroyed: c_uint,
    idle: c_uint,
    reusable: c_uint,
    close: c_uint,
    shared: c_uint,
    sendfile: c_uint,
    sndlowat: c_uint,
    tcp_nodelay: c_uint,
    tcp_nopush: c_uint,
    need_last_buf: c_uint,
    busy_count: c_uint
) -> __BindgenBitfieldUnit<[u8; 4], u8>
[src]

Trait Implementations

impl Clone for ngx_connection_s[src]

impl Copy for ngx_connection_s[src]

impl Debug for ngx_connection_s[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.