#[repr(C)]pub struct ngx_slab_pool_t {Show 17 fields
pub lock: ngx_shmtx_sh_t,
pub min_size: usize,
pub min_shift: usize,
pub pages: *mut ngx_slab_page_s,
pub last: *mut ngx_slab_page_s,
pub free: ngx_slab_page_s,
pub stats: *mut ngx_slab_stat_t,
pub pfree: usize,
pub start: *mut u8,
pub end: *mut u8,
pub mutex: ngx_shmtx_t,
pub log_ctx: *mut u8,
pub zero: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub data: *mut c_void,
pub addr: *mut c_void,
}
Fields§
§lock: ngx_shmtx_sh_t
§min_size: usize
§min_shift: usize
§pages: *mut ngx_slab_page_s
§last: *mut ngx_slab_page_s
§free: ngx_slab_page_s
§stats: *mut ngx_slab_stat_t
§pfree: usize
§start: *mut u8
§end: *mut u8
§mutex: ngx_shmtx_t
§log_ctx: *mut u8
§zero: u8
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§data: *mut c_void
§addr: *mut c_void
Implementations§
Source§impl ngx_slab_pool_t
impl ngx_slab_pool_t
pub fn log_nomem(&self) -> u32
pub fn set_log_nomem(&mut self, val: u32)
pub unsafe fn log_nomem_raw(this: *const ngx_slab_pool_t) -> u32
pub unsafe fn set_log_nomem_raw(this: *mut ngx_slab_pool_t, val: u32)
pub fn new_bitfield_1(log_nomem: u32) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for ngx_slab_pool_t
impl Clone for ngx_slab_pool_t
Source§fn clone(&self) -> ngx_slab_pool_t
fn clone(&self) -> ngx_slab_pool_t
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 moreimpl Copy for ngx_slab_pool_t
Auto Trait Implementations§
impl Freeze for ngx_slab_pool_t
impl RefUnwindSafe for ngx_slab_pool_t
impl !Send for ngx_slab_pool_t
impl !Sync for ngx_slab_pool_t
impl Unpin for ngx_slab_pool_t
impl UnwindSafe for ngx_slab_pool_t
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