pub struct RuntimeAllocBlock { /* private fields */ }Expand description
Owned handle for a raw allocation routed through the device runtime. Both raw allocations and typed storage views retain this handle. Drop hands its block identity to the runtime; the actual raw owner’s successful physical reclamation returns the local manager charge, including on another reaper.
Implementations§
Source§impl RuntimeAllocBlock
impl RuntimeAllocBlock
Sourcepub fn ptr(&self) -> u64
pub fn ptr(&self) -> u64
Raw device pointer for this allocation. Live until the block is dropped.
Sourcepub fn device_block(&self) -> &DeviceBlock
pub fn device_block(&self) -> &DeviceBlock
Borrow the underlying DeviceBlock metadata. Test/
diagnostic accessor.
Trait Implementations§
Source§impl Debug for RuntimeAllocBlock
impl Debug for RuntimeAllocBlock
Source§impl Drop for RuntimeAllocBlock
impl Drop for RuntimeAllocBlock
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeAllocBlock
impl !UnwindSafe for RuntimeAllocBlock
impl Freeze for RuntimeAllocBlock
impl Send for RuntimeAllocBlock
impl Sync for RuntimeAllocBlock
impl Unpin for RuntimeAllocBlock
impl UnsafeUnpin for RuntimeAllocBlock
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