Struct ngx_http_upstream_conf_t

Source
#[repr(C)]
pub struct ngx_http_upstream_conf_t {
Show 63 fields pub upstream: *mut ngx_http_upstream_srv_conf_s, pub connect_timeout: usize, pub send_timeout: usize, pub read_timeout: usize, pub next_upstream_timeout: usize, pub send_lowat: usize, pub buffer_size: usize, pub limit_rate: usize, pub busy_buffers_size: usize, pub max_temp_file_size: usize, pub temp_file_write_size: usize, pub busy_buffers_size_conf: usize, pub max_temp_file_size_conf: usize, pub temp_file_write_size_conf: usize, pub bufs: ngx_bufs_t, pub ignore_headers: usize, pub next_upstream: usize, pub store_access: usize, pub next_upstream_tries: usize, pub buffering: isize, pub request_buffering: isize, pub pass_request_headers: isize, pub pass_request_body: isize, pub ignore_client_abort: isize, pub intercept_errors: isize, pub cyclic_temp_file: isize, pub force_ranges: isize, pub temp_path: *mut ngx_path_t, pub hide_headers_hash: ngx_hash_t, pub hide_headers: *mut ngx_array_t, pub pass_headers: *mut ngx_array_t, pub local: *mut ngx_http_upstream_local_t, pub socket_keepalive: isize, pub cache_zone: *mut ngx_shm_zone_s, pub cache_value: *mut ngx_http_complex_value_t, pub cache_min_uses: usize, pub cache_use_stale: usize, pub cache_methods: usize, pub cache_max_range_offset: i64, pub cache_lock: isize, pub cache_lock_timeout: usize, pub cache_lock_age: usize, pub cache_revalidate: isize, pub cache_convert_head: isize, pub cache_background_update: isize, pub cache_valid: *mut ngx_array_t, pub cache_bypass: *mut ngx_array_t, pub cache_purge: *mut ngx_array_t, pub no_cache: *mut ngx_array_t, pub store_lengths: *mut ngx_array_t, pub store_values: *mut ngx_array_t, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub ssl: *mut ngx_ssl_s, pub ssl_session_reuse: isize, pub ssl_name: *mut ngx_http_complex_value_t, pub ssl_server_name: isize, pub ssl_verify: isize, pub ssl_certificate: *mut ngx_http_complex_value_t, pub ssl_certificate_key: *mut ngx_http_complex_value_t, pub ssl_passwords: *mut ngx_array_t, pub module: ngx_str_t, pub spare: [u64; 2],
}

Fields§

§upstream: *mut ngx_http_upstream_srv_conf_s§connect_timeout: usize§send_timeout: usize§read_timeout: usize§next_upstream_timeout: usize§send_lowat: usize§buffer_size: usize§limit_rate: usize§busy_buffers_size: usize§max_temp_file_size: usize§temp_file_write_size: usize§busy_buffers_size_conf: usize§max_temp_file_size_conf: usize§temp_file_write_size_conf: usize§bufs: ngx_bufs_t§ignore_headers: usize§next_upstream: usize§store_access: usize§next_upstream_tries: usize§buffering: isize§request_buffering: isize§pass_request_headers: isize§pass_request_body: isize§ignore_client_abort: isize§intercept_errors: isize§cyclic_temp_file: isize§force_ranges: isize§temp_path: *mut ngx_path_t§hide_headers_hash: ngx_hash_t§hide_headers: *mut ngx_array_t§pass_headers: *mut ngx_array_t§local: *mut ngx_http_upstream_local_t§socket_keepalive: isize§cache_zone: *mut ngx_shm_zone_s§cache_value: *mut ngx_http_complex_value_t§cache_min_uses: usize§cache_use_stale: usize§cache_methods: usize§cache_max_range_offset: i64§cache_lock: isize§cache_lock_timeout: usize§cache_lock_age: usize§cache_revalidate: isize§cache_convert_head: isize§cache_background_update: isize§cache_valid: *mut ngx_array_t§cache_bypass: *mut ngx_array_t§cache_purge: *mut ngx_array_t§no_cache: *mut ngx_array_t§store_lengths: *mut ngx_array_t§store_values: *mut ngx_array_t§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§ssl: *mut ngx_ssl_s§ssl_session_reuse: isize§ssl_name: *mut ngx_http_complex_value_t§ssl_server_name: isize§ssl_verify: isize§ssl_certificate: *mut ngx_http_complex_value_t§ssl_certificate_key: *mut ngx_http_complex_value_t§ssl_passwords: *mut ngx_array_t§module: ngx_str_t§spare: [u64; 2]

Implementations§

Source§

impl ngx_http_upstream_conf_t

Source

pub fn cache(&self) -> i32

Source

pub fn set_cache(&mut self, val: i32)

Source

pub unsafe fn cache_raw(this: *const ngx_http_upstream_conf_t) -> i32

Source

pub unsafe fn set_cache_raw(this: *mut ngx_http_upstream_conf_t, val: i32)

Source

pub fn store(&self) -> i32

Source

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

Source

pub unsafe fn store_raw(this: *const ngx_http_upstream_conf_t) -> i32

Source

pub unsafe fn set_store_raw(this: *mut ngx_http_upstream_conf_t, val: i32)

Source

pub fn intercept_404(&self) -> u32

Source

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

Source

pub unsafe fn intercept_404_raw(this: *const ngx_http_upstream_conf_t) -> u32

Source

pub unsafe fn set_intercept_404_raw( this: *mut ngx_http_upstream_conf_t, val: u32, )

Source

pub fn change_buffering(&self) -> u32

Source

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

Source

pub unsafe fn change_buffering_raw(this: *const ngx_http_upstream_conf_t) -> u32

Source

pub unsafe fn set_change_buffering_raw( this: *mut ngx_http_upstream_conf_t, val: u32, )

Source

pub fn pass_trailers(&self) -> u32

Source

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

Source

pub unsafe fn pass_trailers_raw(this: *const ngx_http_upstream_conf_t) -> u32

Source

pub unsafe fn set_pass_trailers_raw( this: *mut ngx_http_upstream_conf_t, val: u32, )

Source

pub fn preserve_output(&self) -> u32

Source

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

Source

pub unsafe fn preserve_output_raw(this: *const ngx_http_upstream_conf_t) -> u32

Source

pub unsafe fn set_preserve_output_raw( this: *mut ngx_http_upstream_conf_t, val: u32, )

Source

pub fn new_bitfield_1( cache: i32, store: i32, intercept_404: u32, change_buffering: u32, pass_trailers: u32, preserve_output: u32, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

Source§

impl Clone for ngx_http_upstream_conf_t

Source§

fn clone(&self) -> ngx_http_upstream_conf_t

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_conf_t

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_conf_t

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.