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
Pure Rust, one file, single process. The default.
Sqlite
WAL-mode SQLite: several processes may open the same store. Opt-in
through the sqlite cargo feature; a binary built without it still
recognises the layout, and refuses it by name.
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
Whether this build can open the engine, as opposed to merely name it.
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