pub struct MemoryAllocation {
pub memory_manager_id: u8,
pub binding: MemoryAllocationBinding,
pub range_claim: Option<MemoryAllocationRangeClaim>,
pub virtual_extent: MemoryExtent,
pub allocated_buckets: u16,
pub allocated_bytes: u64,
pub bucket_slack_bytes: u64,
pub payload_bytes: Option<u64>,
}Expand description
Physical accounting for one usable manager slot.
Fields§
§memory_manager_id: u8Memory-manager slot ID.
binding: MemoryAllocationBindingCurrent allocation binding, including explicit unknown ownership.
range_claim: Option<MemoryAllocationRangeClaim>Current range claim, if any.
virtual_extent: MemoryExtentAddressable virtual extent, not payload occupancy.
allocated_buckets: u16Assigned bucket count.
allocated_bytes: u64Assigned bucket bytes.
bucket_slack_bytes: u64Assigned capacity beyond the virtual extent.
payload_bytes: Option<u64>Unavailable: manager metadata cannot measure live payload occupancy.
Trait Implementations§
Source§impl CandidType for MemoryAllocation
impl CandidType for MemoryAllocation
Source§impl Clone for MemoryAllocation
impl Clone for MemoryAllocation
Source§impl Debug for MemoryAllocation
impl Debug for MemoryAllocation
Source§impl<'de> Deserialize<'de> for MemoryAllocation
impl<'de> Deserialize<'de> for MemoryAllocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemoryAllocation
Source§impl From<MemoryAllocation> for MemoryAllocation
impl From<MemoryAllocation> for MemoryAllocation
Source§fn from(memory: MemoryAllocation) -> Self
fn from(memory: MemoryAllocation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryAllocation
impl PartialEq 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