#[repr(C)]pub struct ngx_http_cache_s {Show 35 fields
pub file: ngx_file_s,
pub keys: ngx_array_t,
pub crc32: u32,
pub key: [u8; 16],
pub main: [u8; 16],
pub uniq: u64,
pub valid_sec: i64,
pub updating_sec: i64,
pub error_sec: i64,
pub last_modified: i64,
pub date: i64,
pub etag: ngx_str_t,
pub vary: ngx_str_t,
pub variant: [u8; 16],
pub buffer_size: usize,
pub header_start: usize,
pub body_start: usize,
pub length: i64,
pub fs_size: i64,
pub min_uses: usize,
pub error: usize,
pub valid_msec: usize,
pub vary_tag: usize,
pub buf: *mut ngx_buf_s,
pub file_cache: *mut ngx_http_file_cache_s,
pub node: *mut ngx_http_file_cache_node_t,
pub thread_task: *mut ngx_thread_task_s,
pub lock_timeout: usize,
pub lock_age: usize,
pub lock_time: usize,
pub wait_time: usize,
pub wait_event: ngx_event_s,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>,
pub __bindgen_padding_0: [u16; 3],
}
Fields§
§file: ngx_file_s
§keys: ngx_array_t
§crc32: u32
§key: [u8; 16]
§main: [u8; 16]
§uniq: u64
§valid_sec: i64
§updating_sec: i64
§error_sec: i64
§last_modified: i64
§date: i64
§etag: ngx_str_t
§vary: ngx_str_t
§variant: [u8; 16]
§buffer_size: usize
§header_start: usize
§body_start: usize
§length: i64
§fs_size: i64
§min_uses: usize
§error: usize
§valid_msec: usize
§vary_tag: usize
§buf: *mut ngx_buf_s
§file_cache: *mut ngx_http_file_cache_s
§node: *mut ngx_http_file_cache_node_t
§thread_task: *mut ngx_thread_task_s
§lock_timeout: usize
§lock_age: usize
§lock_time: usize
§wait_time: usize
§wait_event: ngx_event_s
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>
§__bindgen_padding_0: [u16; 3]
Implementations§
Source§impl ngx_http_cache_s
impl ngx_http_cache_s
pub fn lock(&self) -> u32
pub fn set_lock(&mut self, val: u32)
pub unsafe fn lock_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_lock_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn waiting(&self) -> u32
pub fn set_waiting(&mut self, val: u32)
pub unsafe fn waiting_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_waiting_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn updated(&self) -> u32
pub fn set_updated(&mut self, val: u32)
pub unsafe fn updated_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_updated_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn updating(&self) -> u32
pub fn set_updating(&mut self, val: u32)
pub unsafe fn updating_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_updating_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn exists(&self) -> u32
pub fn set_exists(&mut self, val: u32)
pub unsafe fn exists_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_exists_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn temp_file(&self) -> u32
pub fn set_temp_file(&mut self, val: u32)
pub unsafe fn temp_file_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_temp_file_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn purged(&self) -> u32
pub fn set_purged(&mut self, val: u32)
pub unsafe fn purged_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_purged_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn reading(&self) -> u32
pub fn set_reading(&mut self, val: u32)
pub unsafe fn reading_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_reading_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn secondary(&self) -> u32
pub fn set_secondary(&mut self, val: u32)
pub unsafe fn secondary_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_secondary_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn update_variant(&self) -> u32
pub fn set_update_variant(&mut self, val: u32)
pub unsafe fn update_variant_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_update_variant_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn background(&self) -> u32
pub fn set_background(&mut self, val: u32)
pub unsafe fn background_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_background_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn stale_updating(&self) -> u32
pub fn set_stale_updating(&mut self, val: u32)
pub unsafe fn stale_updating_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_stale_updating_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn stale_error(&self) -> u32
pub fn set_stale_error(&mut self, val: u32)
pub unsafe fn stale_error_raw(this: *const ngx_http_cache_s) -> u32
pub unsafe fn set_stale_error_raw(this: *mut ngx_http_cache_s, val: u32)
pub fn new_bitfield_1( lock: u32, waiting: u32, updated: u32, updating: u32, exists: u32, temp_file: u32, purged: u32, reading: u32, secondary: u32, update_variant: u32, background: u32, stale_updating: u32, stale_error: u32, ) -> __BindgenBitfieldUnit<[u8; 2]>
Trait Implementations§
Source§impl Clone for ngx_http_cache_s
impl Clone for ngx_http_cache_s
Source§fn clone(&self) -> ngx_http_cache_s
fn clone(&self) -> ngx_http_cache_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_cache_s
impl Debug for ngx_http_cache_s
impl Copy for ngx_http_cache_s
Auto Trait Implementations§
impl Freeze for ngx_http_cache_s
impl RefUnwindSafe for ngx_http_cache_s
impl !Send for ngx_http_cache_s
impl !Sync for ngx_http_cache_s
impl Unpin for ngx_http_cache_s
impl UnwindSafe for ngx_http_cache_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