pub struct MemoryApi;Expand description
MemoryApi
Implementations§
Source§impl MemoryApi
impl MemoryApi
Sourcepub fn bootstrap_registry(
crate_name: &'static str,
start: u8,
end: u8,
) -> Result<MemoryRegistryInitSummary, MemoryRegistryError>
pub fn bootstrap_registry( crate_name: &'static str, start: u8, end: u8, ) -> Result<MemoryRegistryInitSummary, MemoryRegistryError>
Bootstrap eager TLS, eager-init hooks, and the caller’s initial reserved range.
Sourcepub fn register_memory(
id: u8,
crate_name: &str,
label: &str,
) -> Result<VirtualMemory<DefaultMemoryImpl>, MemoryRegistryError>
pub fn register_memory( id: u8, crate_name: &str, label: &str, ) -> Result<VirtualMemory<DefaultMemoryImpl>, MemoryRegistryError>
Register one stable-memory ID and return its opened virtual memory handle.
Call bootstrap_registry(...) first so the caller’s owned range is reserved.
Auto Trait Implementations§
impl Freeze for MemoryApi
impl RefUnwindSafe for MemoryApi
impl Send for MemoryApi
impl Sync for MemoryApi
impl Unpin for MemoryApi
impl UnsafeUnpin for MemoryApi
impl UnwindSafe for MemoryApi
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