pub struct CountersHeader {
pub magic: u32,
pub version: u32,
pub slot_count: AtomicU32,
pub slot_capacity: u32,
pub slot_stride: u32,
pub slots_offset: u32,
/* private fields */
}Expand description
Header for the counters file region. Lives at the start of the reserved zone described in RFC 0040.
Fields§
§magic: u32COUNTERS_MAGIC when valid.
version: u32Layout version; bumped when slot stride or header shape changes.
slot_count: AtomicU32Number of slots actually in use; advances monotonically.
slot_capacity: u32Maximum slots the array can hold (always MAX_COUNTER_SLOTS).
slot_stride: u32Bytes per slot (size_of::<CounterSlot>()); included so external
readers don’t need to depend on this crate’s structs.
slots_offset: u32Bytes from the start of this header to the first slot.
Auto Trait Implementations§
impl !Freeze for CountersHeader
impl RefUnwindSafe for CountersHeader
impl Send for CountersHeader
impl Sync for CountersHeader
impl Unpin for CountersHeader
impl UnsafeUnpin for CountersHeader
impl UnwindSafe for CountersHeader
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