Struct electrscash::store::DbStore
source · [−]pub struct DbStore { /* private fields */ }
Implementations
sourceimpl DbStore
impl DbStore
sourcepub fn open(path: &Path, low_memory: bool, metrics: &Metrics) -> Self
pub fn open(path: &Path, low_memory: bool, metrics: &Metrics) -> Self
Opens a new RocksDB at the specified location.
pub fn enable_compaction(self) -> Self
pub fn compact(self) -> Self
pub fn iter_scan(&self, prefix: &[u8]) -> ScanIterator<'_>ⓘNotable traits for ScanIterator<'a>impl<'a> Iterator for ScanIterator<'a> type Item = Row;
pub fn destroy(path: &Path)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DbStore
impl Send for DbStore
impl Sync for DbStore
impl Unpin for DbStore
impl !UnwindSafe for DbStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self