pub enum StorageMode {
Memory,
FileFast,
FileDurable,
Acid,
}Expand description
Storage runtime mode.
Variants§
Memory
In-memory backend.
FileFast
File backend without fsync/fdatasync on every append.
FileDurable
File backend with fsync/fdatasync on every append.
Acid
ACID backend using sharded redb databases.
Implementations§
Source§impl StorageMode
impl StorageMode
pub fn as_str(self) -> &'static str
pub fn uses_file_backend(self) -> bool
pub fn sync_on_append(self) -> bool
Trait Implementations§
Source§impl Clone for StorageMode
impl Clone for StorageMode
Source§fn clone(&self) -> StorageMode
fn clone(&self) -> StorageMode
Returns a duplicate of the value. Read more
1.0.0 · 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 StorageMode
impl Debug for StorageMode
Source§impl PartialEq for StorageMode
impl PartialEq for StorageMode
impl Copy for StorageMode
impl Eq for StorageMode
impl StructuralPartialEq for StorageMode
Auto Trait Implementations§
impl Freeze for StorageMode
impl RefUnwindSafe for StorageMode
impl Send for StorageMode
impl Sync for StorageMode
impl Unpin for StorageMode
impl UnsafeUnpin for StorageMode
impl UnwindSafe for StorageMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.