Struct parity_rocksdb::rocksdb::Snapshot
source · [−]pub struct Snapshot<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Snapshot<'a>
impl<'a> Snapshot<'a>
pub fn new(db: &DB) -> Snapshot<'_>
pub fn iterator(&self, mode: IteratorMode<'_>) -> DBIteratorⓘNotable traits for DBIteratorimpl Iterator for DBIterator type Item = (Box<[u8]>, Box<[u8]>);
pub fn get(&self, key: &[u8]) -> Result<Option<DBVector>, String>
pub fn get_cf(&self, cf: Column, key: &[u8]) -> Result<Option<DBVector>, String>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Snapshot<'a>
impl<'a> !Send for Snapshot<'a>
impl<'a> !Sync for Snapshot<'a>
impl<'a> Unpin for Snapshot<'a>
impl<'a> UnwindSafe for Snapshot<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more