pub struct MemoryAllocation {
pub memory_manager_id: u8,
pub binding: AllocationBinding,
pub range_claim: Option<AllocationRangeClaim>,
pub virtual_extent: DiagnosticMemorySize,
pub allocated_buckets: u16,
pub allocated_bytes: u64,
pub bucket_slack_bytes: u64,
pub payload_bytes: Option<u64>,
}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§range_claim: Option<AllocationRangeClaim>§virtual_extent: DiagnosticMemorySize§allocated_buckets: u16§allocated_bytes: u64§bucket_slack_bytes: u64§payload_bytes: Option<u64>Unavailable: neither manager metadata nor virtual extent measures payload.
Trait Implementations§
Source§impl Clone for MemoryAllocation
impl Clone for MemoryAllocation
Source§fn clone(&self) -> MemoryAllocation
fn clone(&self) -> MemoryAllocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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