pub enum Backend {
Memory,
RocksDB,
LMDB,
SQLite,
IndexedDB,
Custom(String),
}
Expand description
Backend
Variants§
Memory
Memory
RocksDB
RocksDB
LMDB
Lightning Memory-Mapped Database
SQLite
SQLite
IndexedDB
IndexedDB
Custom(String)
Custom
Implementations§
Source§impl Backend
impl Backend
Sourcepub fn is_persistent(&self) -> bool
pub fn is_persistent(&self) -> bool
Check if it’s a persistent backend
All values different from Backend::Memory
are considered persistent
Trait Implementations§
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
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