pub struct StoreJournaledMemoryConfig { /* private fields */ }Expand description
Stable-memory IDs for the four durable roles owned by one journaled cached-stable store.
Implementations§
Source§impl StoreJournaledMemoryConfig
impl StoreJournaledMemoryConfig
Sourcepub const fn new(
data_memory_id: u8,
index_memory_id: u8,
schema_memory_id: u8,
journal_memory_id: u8,
) -> Self
pub const fn new( data_memory_id: u8, index_memory_id: u8, schema_memory_id: u8, journal_memory_id: u8, ) -> Self
Build a journaled memory configuration from canonical data, index, schema, and journal-tail memory IDs.
Sourcepub const fn data_memory_id(self) -> u8
pub const fn data_memory_id(self) -> u8
Canonical data-store stable memory ID.
Sourcepub const fn index_memory_id(self) -> u8
pub const fn index_memory_id(self) -> u8
Canonical index-store stable memory ID.
Sourcepub const fn schema_memory_id(self) -> u8
pub const fn schema_memory_id(self) -> u8
Canonical schema-store stable memory ID.
Sourcepub const fn journal_memory_id(self) -> u8
pub const fn journal_memory_id(self) -> u8
Durable journal-tail stable memory ID.
Trait Implementations§
Source§impl Clone for StoreJournaledMemoryConfig
impl Clone for StoreJournaledMemoryConfig
Source§fn clone(&self) -> StoreJournaledMemoryConfig
fn clone(&self) -> StoreJournaledMemoryConfig
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 StoreJournaledMemoryConfig
impl Debug for StoreJournaledMemoryConfig
Source§impl PartialEq for StoreJournaledMemoryConfig
impl PartialEq for StoreJournaledMemoryConfig
Source§fn eq(&self, other: &StoreJournaledMemoryConfig) -> bool
fn eq(&self, other: &StoreJournaledMemoryConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StoreJournaledMemoryConfig
impl Eq for StoreJournaledMemoryConfig
impl StructuralPartialEq for StoreJournaledMemoryConfig
Auto Trait Implementations§
impl Freeze for StoreJournaledMemoryConfig
impl RefUnwindSafe for StoreJournaledMemoryConfig
impl Send for StoreJournaledMemoryConfig
impl Sync for StoreJournaledMemoryConfig
impl Unpin for StoreJournaledMemoryConfig
impl UnsafeUnpin for StoreJournaledMemoryConfig
impl UnwindSafe for StoreJournaledMemoryConfig
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