pub struct MemoryAllocation {
pub memory_manager_id: u8,
pub binding: AllocationBinding,
pub pool_eligible: Option<bool>,
pub virtual_extent: DiagnosticMemorySize,
pub allocated_buckets: u16,
}Expand description
MemoryAllocation
Measured allocation of one usable ID, including zero-size IDs. Virtual extent is addressable capacity, never live payload occupancy. Bucket slack is assigned bucket capacity beyond virtual extent; it says nothing about unused bytes inside the virtual extent.
Fields§
§memory_manager_id: u8§binding: AllocationBinding§pool_eligible: Option<bool>Current host pool eligibility, not evidence that this ID is free. Unavailable before bootstrap except for the permanent governance exclusion.
virtual_extent: DiagnosticMemorySize§allocated_buckets: u16Implementations§
Source§impl MemoryAllocation
impl MemoryAllocation
Sourcepub const fn allocated_bytes(&self, bucket_size_pages: u16) -> u64
pub const fn allocated_bytes(&self, bucket_size_pages: u16) -> u64
Bucket capacity assigned to this ID under the measured bucket geometry.
Sourcepub const fn bucket_slack_bytes(&self, bucket_size_pages: u16) -> u64
pub const fn bucket_slack_bytes(&self, bucket_size_pages: u16) -> u64
Assigned capacity beyond this ID’s virtual extent, not live payload occupancy.
Use the containing report’s measured bucket_size_pages.
Trait Implementations§
Source§impl Clone for MemoryAllocation
impl Clone for MemoryAllocation
Source§impl Debug for MemoryAllocation
impl Debug for MemoryAllocation
impl Eq for MemoryAllocation
Source§impl PartialEq for MemoryAllocation
impl PartialEq for MemoryAllocation
Source§impl Serialize for MemoryAllocation
impl Serialize for MemoryAllocation
impl StructuralPartialEq for MemoryAllocation
Auto Trait Implementations§
impl Freeze for MemoryAllocation
impl RefUnwindSafe for MemoryAllocation
impl Send for MemoryAllocation
impl Sync for MemoryAllocation
impl Unpin for MemoryAllocation
impl UnsafeUnpin for MemoryAllocation
impl UnwindSafe for MemoryAllocation
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