[][src]Struct nginx::ngx_http_upstream_s

#[repr(C)]pub struct ngx_http_upstream_s {
    pub read_event_handler: ngx_http_upstream_handler_pt,
    pub write_event_handler: ngx_http_upstream_handler_pt,
    pub peer: ngx_peer_connection_t,
    pub pipe: *mut ngx_event_pipe_t,
    pub request_bufs: *mut ngx_chain_t,
    pub output: ngx_output_chain_ctx_t,
    pub writer: ngx_chain_writer_ctx_t,
    pub conf: *mut ngx_http_upstream_conf_t,
    pub upstream: *mut ngx_http_upstream_srv_conf_t,
    pub caches: *mut ngx_array_t,
    pub headers_in: ngx_http_upstream_headers_in_t,
    pub resolved: *mut ngx_http_upstream_resolved_t,
    pub from_client: ngx_buf_t,
    pub buffer: ngx_buf_t,
    pub length: off_t,
    pub out_bufs: *mut ngx_chain_t,
    pub busy_bufs: *mut ngx_chain_t,
    pub free_bufs: *mut ngx_chain_t,
    pub input_filter_init: Option<unsafe extern "C" fn(data: *mut c_void) -> ngx_int_t>,
    pub input_filter: Option<unsafe extern "C" fn(data: *mut c_void, bytes: ssize_t) -> ngx_int_t>,
    pub input_filter_ctx: *mut c_void,
    pub create_key: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t) -> ngx_int_t>,
    pub create_request: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t) -> ngx_int_t>,
    pub reinit_request: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t) -> ngx_int_t>,
    pub process_header: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t) -> ngx_int_t>,
    pub abort_request: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t)>,
    pub finalize_request: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t, rc: ngx_int_t)>,
    pub rewrite_redirect: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t, h: *mut ngx_table_elt_t, prefix: size_t) -> ngx_int_t>,
    pub rewrite_cookie: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t, h: *mut ngx_table_elt_t) -> ngx_int_t>,
    pub start_time: ngx_msec_t,
    pub state: *mut ngx_http_upstream_state_t,
    pub method: ngx_str_t,
    pub schema: ngx_str_t,
    pub uri: ngx_str_t,
    pub ssl_name: ngx_str_t,
    pub cleanup: *mut ngx_http_cleanup_pt,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2], u8>,
    pub __bindgen_padding_0: [u16; 3],
}

Fields

read_event_handler: ngx_http_upstream_handler_ptwrite_event_handler: ngx_http_upstream_handler_ptpeer: ngx_peer_connection_tpipe: *mut ngx_event_pipe_trequest_bufs: *mut ngx_chain_toutput: ngx_output_chain_ctx_twriter: ngx_chain_writer_ctx_tconf: *mut ngx_http_upstream_conf_tupstream: *mut ngx_http_upstream_srv_conf_tcaches: *mut ngx_array_theaders_in: ngx_http_upstream_headers_in_tresolved: *mut ngx_http_upstream_resolved_tfrom_client: ngx_buf_tbuffer: ngx_buf_tlength: off_tout_bufs: *mut ngx_chain_tbusy_bufs: *mut ngx_chain_tfree_bufs: *mut ngx_chain_tinput_filter_init: Option<unsafe extern "C" fn(data: *mut c_void) -> ngx_int_t>input_filter: Option<unsafe extern "C" fn(data: *mut c_void, bytes: ssize_t) -> ngx_int_t>input_filter_ctx: *mut c_voidcreate_key: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t) -> ngx_int_t>create_request: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t) -> ngx_int_t>reinit_request: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t) -> ngx_int_t>process_header: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t) -> ngx_int_t>abort_request: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t)>finalize_request: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t, rc: ngx_int_t)>rewrite_redirect: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t, h: *mut ngx_table_elt_t, prefix: size_t) -> ngx_int_t>rewrite_cookie: Option<unsafe extern "C" fn(r: *mut ngx_http_request_t, h: *mut ngx_table_elt_t) -> ngx_int_t>start_time: ngx_msec_tstate: *mut ngx_http_upstream_state_tmethod: ngx_str_tschema: ngx_str_turi: ngx_str_tssl_name: ngx_str_tcleanup: *mut ngx_http_cleanup_pt_bitfield_1: __BindgenBitfieldUnit<[u8; 2], u8>__bindgen_padding_0: [u16; 3]

Implementations

impl ngx_http_upstream_s[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn set_upgrade(&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 request_sent(&self) -> c_uint[src]

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

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

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

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

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

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

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

pub fn new_bitfield_1(
    store: c_uint,
    cacheable: c_uint,
    accel: c_uint,
    ssl: c_uint,
    cache_status: c_uint,
    buffering: c_uint,
    keepalive: c_uint,
    upgrade: c_uint,
    error: c_uint,
    request_sent: c_uint,
    request_body_sent: c_uint,
    request_body_blocked: c_uint,
    header_sent: c_uint
) -> __BindgenBitfieldUnit<[u8; 2], u8>
[src]

Trait Implementations

impl Clone for ngx_http_upstream_s[src]

impl Copy for ngx_http_upstream_s[src]

impl Debug for ngx_http_upstream_s[src]

Auto Trait Implementations

impl RefUnwindSafe for ngx_http_upstream_s

impl !Send for ngx_http_upstream_s

impl !Sync for ngx_http_upstream_s

impl Unpin for ngx_http_upstream_s

impl UnwindSafe for ngx_http_upstream_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.