pub(super) struct SlabHdr {
keg: Arc<UmaKeg>,
items: *mut u8,
flags: SlabFlags,
state: Mutex<SlabState>,
refs: AtomicUsize,
}Expand description
Implementation of uma_slab_head.
Fields§
§keg: Arc<UmaKeg>§items: *mut u8§flags: SlabFlags§state: Mutex<SlabState>This MUST be locked after everything else (e.g. keg state and zone state) otherwise it will cause a deadlock.
refs: AtomicUsizeImplementations§
Auto Trait Implementations§
impl !Freeze for SlabHdr
impl !RefUnwindSafe for SlabHdr
impl !Send for SlabHdr
impl !Sync for SlabHdr
impl !UnwindSafe for SlabHdr
impl Unpin for SlabHdr
impl UnsafeUnpin for SlabHdr
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