pub struct RuntimeMemory<M: Memory> { /* private fields */ }Expand description
RuntimeMemory
Exclusive non-cloneable allocation lease. IO trusts custody between checked boundaries; growth commits the directory before publishing its new extent. A detached lease retains the backing claim until it is dropped.
Implementations§
Source§impl<M: Memory> RuntimeMemory<M>
impl<M: Memory> RuntimeMemory<M>
Sourcepub fn grow(&self, pages: u64) -> Result<u64, RuntimeGrowError>
pub fn grow(&self, pages: u64) -> Result<u64, RuntimeGrowError>
Reserve additional zero-filled logical pages without exposing backing.
§Errors
Rejects arithmetic overflow, resource limits, backing refusal, poisoned ownership, or invalid directory state.
Trait Implementations§
Source§impl<M: Memory> Memory for RuntimeMemory<M>
impl<M: Memory> Memory for RuntimeMemory<M>
Auto Trait Implementations§
impl<M> !RefUnwindSafe for RuntimeMemory<M>
impl<M> !Send for RuntimeMemory<M>
impl<M> !Sync for RuntimeMemory<M>
impl<M> !UnwindSafe for RuntimeMemory<M>
impl<M> Freeze for RuntimeMemory<M>where
Lease<M>: Freeze,
impl<M> Unpin for RuntimeMemory<M>where
Lease<M>: Unpin,
impl<M> UnsafeUnpin for RuntimeMemory<M>where
Lease<M>: UnsafeUnpin,
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