pub struct MemoryRegistryRuntime;Expand description
MemoryRegistryRuntime
Substrate runtime controller responsible for initializing the global memory registry.
This type performs mechanical coordination only:
- ordering
- conflict detection
- idempotent initialization
It encodes no application semantics.
Implementations§
Source§impl MemoryRegistryRuntime
impl MemoryRegistryRuntime
Sourcepub fn init(
initial_range: Option<(&str, u8, u8)>,
) -> Result<MemoryRegistryInitSummary, MemoryRegistryError>
pub fn init( initial_range: Option<(&str, u8, u8)>, ) -> Result<MemoryRegistryInitSummary, MemoryRegistryError>
Initialize the memory registry.
- Optionally reserves an initial range for the caller.
- Applies all deferred range reservations.
- Applies all deferred ID registrations.
This function is idempotent for the same initial range.
Sourcepub fn snapshot_entries() -> Vec<(u8, MemoryRegistryEntry)>
pub fn snapshot_entries() -> Vec<(u8, MemoryRegistryEntry)>
Snapshot all registry entries.
Sourcepub fn snapshot_ranges() -> Vec<(String, MemoryRange)>
pub fn snapshot_ranges() -> Vec<(String, MemoryRange)>
Snapshot all reserved memory ranges.
Sourcepub fn get(id: u8) -> Option<MemoryRegistryEntry>
pub fn get(id: u8) -> Option<MemoryRegistryEntry>
Retrieve a single registry entry by ID.
Auto Trait Implementations§
impl Freeze for MemoryRegistryRuntime
impl RefUnwindSafe for MemoryRegistryRuntime
impl Send for MemoryRegistryRuntime
impl Sync for MemoryRegistryRuntime
impl Unpin for MemoryRegistryRuntime
impl UnwindSafe for MemoryRegistryRuntime
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