pub struct MemoryRegistryOps;Expand description
MemoryRegistryOps Ops wrapper around the global memory registry.
Implementations§
Source§impl MemoryRegistryOps
impl MemoryRegistryOps
Sourcepub fn init_memory() -> Result<(), Error>
pub fn init_memory() -> Result<(), Error>
Initialise all registered memory segments and ranges.
- Reserves the internal canic range.
- Applies all deferred range reservations.
- Applies all deferred registrations (sorted by ID).
- Emits summary logs per range.
pub fn export() -> MemoryRegistryView
pub fn export_ranges() -> Vec<(String, MemoryRange)>
pub fn get(id: u8) -> Option<MemoryRegistryEntry>
Auto Trait Implementations§
impl Freeze for MemoryRegistryOps
impl RefUnwindSafe for MemoryRegistryOps
impl Send for MemoryRegistryOps
impl Sync for MemoryRegistryOps
impl Unpin for MemoryRegistryOps
impl UnwindSafe for MemoryRegistryOps
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