Struct ngx_http_upstream_s

Source
#[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>§rewrite_cookie: Option<unsafe extern "C" fn(_: *mut ngx_http_request_s, _: *mut ngx_table_elt_s) -> 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

Source

pub fn store(&self) -> u32

Source

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

Source

pub unsafe fn store_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_store_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

pub fn cacheable(&self) -> u32

Source

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

Source

pub unsafe fn cacheable_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_cacheable_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

pub fn accel(&self) -> u32

Source

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

Source

pub unsafe fn accel_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_accel_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

pub fn ssl(&self) -> u32

Source

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

Source

pub unsafe fn ssl_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_ssl_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

pub fn cache_status(&self) -> u32

Source

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

Source

pub unsafe fn cache_status_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_cache_status_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

pub fn buffering(&self) -> u32

Source

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

Source

pub unsafe fn buffering_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_buffering_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

pub fn keepalive(&self) -> u32

Source

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

Source

pub unsafe fn keepalive_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_keepalive_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

pub fn upgrade(&self) -> u32

Source

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

Source

pub unsafe fn upgrade_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_upgrade_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

pub fn error(&self) -> u32

Source

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

Source

pub unsafe fn error_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_error_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

pub fn request_sent(&self) -> u32

Source

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

Source

pub unsafe fn request_sent_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_request_sent_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

pub fn request_body_sent(&self) -> u32

Source

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

Source

pub unsafe fn request_body_sent_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_request_body_sent_raw( this: *mut ngx_http_upstream_s, val: u32, )

Source

pub fn request_body_blocked(&self) -> u32

Source

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

Source

pub unsafe fn request_body_blocked_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_request_body_blocked_raw( this: *mut ngx_http_upstream_s, val: u32, )

Source

pub fn header_sent(&self) -> u32

Source

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

Source

pub unsafe fn header_sent_raw(this: *const ngx_http_upstream_s) -> u32

Source

pub unsafe fn set_header_sent_raw(this: *mut ngx_http_upstream_s, val: u32)

Source

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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ngx_http_upstream_s

Source§

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

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

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