#[repr(C)]pub struct ngx_http_upstream_s {Show 39 fields
pub read_event_handler: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s, _: *mut ngx_http_upstream_s)>,
pub write_event_handler: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s, _: *mut ngx_http_upstream_s)>,
pub peer: ngx_peer_connection_s,
pub pipe: *mut ngx_event_pipe_s,
pub request_bufs: *mut ngx_chain_s,
pub output: ngx_output_chain_ctx_s,
pub writer: ngx_chain_writer_ctx_t,
pub conf: *mut ngx_http_upstream_conf_t,
pub upstream: *mut ngx_http_upstream_srv_conf_s,
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_s,
pub buffer: ngx_buf_s,
pub length: i64,
pub out_bufs: *mut ngx_chain_s,
pub busy_bufs: *mut ngx_chain_s,
pub free_bufs: *mut ngx_chain_s,
pub input_filter_init: Option<unsafe extern "C" fn(_: *mut c_void) -> isize>,
pub input_filter: Option<unsafe extern "C" fn(_: *mut c_void, _: isize) -> isize>,
pub input_filter_ctx: *mut c_void,
pub create_key: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s) -> isize>,
pub create_request: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s) -> isize>,
pub reinit_request: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s) -> isize>,
pub process_header: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s) -> isize>,
pub abort_request: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s)>,
pub finalize_request: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s, _: isize)>,
pub rewrite_redirect: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s, _: *mut ngx_table_elt_s, _: usize) -> isize>,
pub rewrite_cookie: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s, _: *mut ngx_table_elt_s) -> isize>,
pub start_time: usize,
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 Option<unsafe extern "C" fn(_: *mut c_void)>,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>,
pub __bindgen_padding_0: [u16; 3],
}
Fields§
§read_event_handler: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s, _: *mut ngx_http_upstream_s)>
§write_event_handler: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s, _: *mut ngx_http_upstream_s)>
§peer: ngx_peer_connection_s
§pipe: *mut ngx_event_pipe_s
§request_bufs: *mut ngx_chain_s
§output: ngx_output_chain_ctx_s
§writer: ngx_chain_writer_ctx_t
§conf: *mut ngx_http_upstream_conf_t
§upstream: *mut ngx_http_upstream_srv_conf_s
§caches: *mut ngx_array_t
§headers_in: ngx_http_upstream_headers_in_t
§resolved: *mut ngx_http_upstream_resolved_t
§from_client: ngx_buf_s
§buffer: ngx_buf_s
§length: i64
§out_bufs: *mut ngx_chain_s
§busy_bufs: *mut ngx_chain_s
§free_bufs: *mut ngx_chain_s
§input_filter_init: Option<unsafe extern "C" fn(_: *mut c_void) -> isize>
§input_filter: Option<unsafe extern "C" fn(_: *mut c_void, _: isize) -> isize>
§input_filter_ctx: *mut c_void
§create_key: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s) -> isize>
§create_request: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s) -> isize>
§reinit_request: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s) -> isize>
§process_header: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s) -> isize>
§abort_request: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s)>
§finalize_request: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s, _: isize)>
§rewrite_redirect: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s, _: *mut ngx_table_elt_s, _: usize) -> isize>
§start_time: usize
§state: *mut ngx_http_upstream_state_t
§method: ngx_str_t
§schema: ngx_str_t
§uri: ngx_str_t
§ssl_name: ngx_str_t
§cleanup: *mut Option<unsafe extern "C" fn(_: *mut c_void)>
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>
§__bindgen_padding_0: [u16; 3]
Implementations§
Source§impl ngx_http_upstream_s
impl ngx_http_upstream_s
pub fn store(&self) -> u32
pub fn set_store(&mut self, val: u32)
pub unsafe fn store_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_store_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn cacheable(&self) -> u32
pub fn set_cacheable(&mut self, val: u32)
pub unsafe fn cacheable_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_cacheable_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn accel(&self) -> u32
pub fn set_accel(&mut self, val: u32)
pub unsafe fn accel_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_accel_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn ssl(&self) -> u32
pub fn set_ssl(&mut self, val: u32)
pub unsafe fn ssl_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_ssl_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn cache_status(&self) -> u32
pub fn set_cache_status(&mut self, val: u32)
pub unsafe fn cache_status_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_cache_status_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn buffering(&self) -> u32
pub fn set_buffering(&mut self, val: u32)
pub unsafe fn buffering_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_buffering_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn keepalive(&self) -> u32
pub fn set_keepalive(&mut self, val: u32)
pub unsafe fn keepalive_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_keepalive_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn upgrade(&self) -> u32
pub fn set_upgrade(&mut self, val: u32)
pub unsafe fn upgrade_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_upgrade_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn error(&self) -> u32
pub fn set_error(&mut self, val: u32)
pub unsafe fn error_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_error_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn request_sent(&self) -> u32
pub fn set_request_sent(&mut self, val: u32)
pub unsafe fn request_sent_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_request_sent_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn request_body_sent(&self) -> u32
pub fn set_request_body_sent(&mut self, val: u32)
pub unsafe fn request_body_sent_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_request_body_sent_raw( this: *mut ngx_http_upstream_s, val: u32, )
pub fn request_body_blocked(&self) -> u32
pub fn set_request_body_blocked(&mut self, val: u32)
pub unsafe fn request_body_blocked_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_request_body_blocked_raw( this: *mut ngx_http_upstream_s, val: u32, )
pub fn header_sent(&self) -> u32
pub fn set_header_sent(&mut self, val: u32)
pub unsafe fn header_sent_raw(this: *const ngx_http_upstream_s) -> u32
pub unsafe fn set_header_sent_raw(this: *mut ngx_http_upstream_s, val: u32)
pub fn new_bitfield_1( store: u32, cacheable: u32, accel: u32, ssl: u32, cache_status: u32, buffering: u32, keepalive: u32, upgrade: u32, error: u32, request_sent: u32, request_body_sent: u32, request_body_blocked: u32, header_sent: u32, ) -> __BindgenBitfieldUnit<[u8; 2]>
Trait Implementations§
Source§impl Clone for ngx_http_upstream_s
impl Clone for ngx_http_upstream_s
Source§fn clone(&self) -> ngx_http_upstream_s
fn clone(&self) -> ngx_http_upstream_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_http_upstream_s
impl Debug for ngx_http_upstream_s
impl Copy for ngx_http_upstream_s
Auto Trait Implementations§
impl Freeze for ngx_http_upstream_s
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§
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