pub enum StorageEngine {
Redb,
Sqlite,
}Expand description
The engine behind a data directory’s store/. Chosen once, when the
directory is created; recorded as its FORMAT_VERSION; never guessed.
Variants§
Redb
Legacy format-1 redb store. New stores never select it; the variant is retained only so older memory can be opened and migrated.
Sqlite
WAL-mode SQLite: several processes may open the same store. This is the only engine used for new memory.
Implementations§
Source§impl StorageEngine
impl StorageEngine
Sourcepub const fn format_version(self) -> u32
pub const fn format_version(self) -> u32
The FORMAT_VERSION this engine stamps.
Sourcepub const fn is_compiled(self) -> bool
pub const fn is_compiled(self) -> bool
Both known formats remain readable during the compatibility window.
pub const fn name(self) -> &'static str
Trait Implementations§
Source§impl Clone for StorageEngine
impl Clone for StorageEngine
Source§fn clone(&self) -> StorageEngine
fn clone(&self) -> StorageEngine
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 moreimpl Copy for StorageEngine
Source§impl Debug for StorageEngine
impl Debug for StorageEngine
Source§impl Display for StorageEngine
impl Display for StorageEngine
impl Eq for StorageEngine
Source§impl PartialEq for StorageEngine
impl PartialEq for StorageEngine
impl StructuralPartialEq for StorageEngine
Auto Trait Implementations§
impl Freeze for StorageEngine
impl RefUnwindSafe for StorageEngine
impl Send for StorageEngine
impl Sync for StorageEngine
impl Unpin for StorageEngine
impl UnsafeUnpin for StorageEngine
impl UnwindSafe for StorageEngine
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