pub struct MemoryAllocation {
pub memory_manager_id: u8,
pub binding: MemoryAllocationBinding,
pub pool_eligible: Option<bool>,
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.
pool_eligible: Option<bool>Whether this slot belongs to the current host pool; absent before bootstrap.
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 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 PartialEq for MemoryAllocation
impl PartialEq for MemoryAllocation
Source§impl Serialize for MemoryAllocation
impl Serialize for MemoryAllocation
impl StructuralPartialEq for MemoryAllocation
Source§impl Wire for MemoryAllocationwhere
Self: Serialize,
Available on non-target_family=wasm only.
impl Wire for MemoryAllocationwhere
Self: Serialize,
Available on non-
target_family=wasm only.Source§fn native_schema(
__ic_wire_schema: &mut SchemaContext,
) -> Result<Value, GenerationError>
fn native_schema( __ic_wire_schema: &mut SchemaContext, ) -> Result<Value, GenerationError>
Describe the serialized shape using the existing registry metadata grammar.
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