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() -> Result<(), MemoryRegistryError>
pub fn init() -> Result<(), MemoryRegistryError>
Initialize the memory registry.
- Applies all deferred ID registrations.
This function is idempotent for the same declaration snapshot.
Sourcepub fn is_initialized() -> bool
pub fn is_initialized() -> bool
Return whether the memory registry has completed initialization.
Sourcepub fn validated_allocations() -> Result<ValidatedAllocations, MemoryRegistryError>
pub fn validated_allocations() -> Result<ValidatedAllocations, MemoryRegistryError>
Return the sealed validated allocation set published by bootstrap.
Auto Trait Implementations§
impl Freeze for MemoryRegistryRuntime
impl RefUnwindSafe for MemoryRegistryRuntime
impl Send for MemoryRegistryRuntime
impl Sync for MemoryRegistryRuntime
impl Unpin for MemoryRegistryRuntime
impl UnsafeUnpin 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