pub struct StoreStableMemoryConfig { /* private fields */ }Expand description
Stable-memory IDs for the three durable roles owned by one store.
Implementations§
Source§impl StoreStableMemoryConfig
impl StoreStableMemoryConfig
Sourcepub const fn new(
data_memory_id: u8,
index_memory_id: u8,
schema_memory_id: u8,
) -> Self
pub const fn new( data_memory_id: u8, index_memory_id: u8, schema_memory_id: u8, ) -> Self
Build a stable-memory configuration from data, index, and schema memory IDs.
Sourcepub const fn data_memory_id(self) -> u8
pub const fn data_memory_id(self) -> u8
Data-store stable memory ID.
Sourcepub const fn index_memory_id(self) -> u8
pub const fn index_memory_id(self) -> u8
Index-store stable memory ID.
Sourcepub const fn schema_memory_id(self) -> u8
pub const fn schema_memory_id(self) -> u8
Schema-store stable memory ID.
Trait Implementations§
Source§impl Clone for StoreStableMemoryConfig
impl Clone for StoreStableMemoryConfig
Source§fn clone(&self) -> StoreStableMemoryConfig
fn clone(&self) -> StoreStableMemoryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoreStableMemoryConfig
impl Debug for StoreStableMemoryConfig
Source§impl PartialEq for StoreStableMemoryConfig
impl PartialEq for StoreStableMemoryConfig
Source§fn eq(&self, other: &StoreStableMemoryConfig) -> bool
fn eq(&self, other: &StoreStableMemoryConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StoreStableMemoryConfig
impl Serialize for StoreStableMemoryConfig
impl Copy for StoreStableMemoryConfig
impl Eq for StoreStableMemoryConfig
impl StructuralPartialEq for StoreStableMemoryConfig
Auto Trait Implementations§
impl Freeze for StoreStableMemoryConfig
impl RefUnwindSafe for StoreStableMemoryConfig
impl Send for StoreStableMemoryConfig
impl Sync for StoreStableMemoryConfig
impl Unpin for StoreStableMemoryConfig
impl UnsafeUnpin for StoreStableMemoryConfig
impl UnwindSafe for StoreStableMemoryConfig
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