[][src]Struct rexrocksdb::rocksdb::Snapshot

pub struct Snapshot<D: Deref<Target = DB>> { /* fields omitted */ }

Methods

impl<D: Deref<Target = DB> + Clone> Snapshot<D>[src]

Important traits for &'b mut DBIterator<D>
pub fn iter_opt_clone(&self, opt: ReadOptions) -> DBIterator<D>[src]

Create an iterator and clone the inner db.

Please note that, the snapshot struct could be dropped before the iterator if use improperly, which seems safe though.

impl<D: Deref<Target = DB>> Snapshot<D>[src]

pub fn new(db: D) -> Snapshot<D>[src]

Important traits for &'b mut DBIterator<D>
pub fn iter(&self) -> DBIterator<&DB>[src]

Important traits for &'b mut DBIterator<D>
pub fn iter_opt(&self, opt: ReadOptions) -> DBIterator<&DB>[src]

pub fn get(&self, key: &[u8]) -> Result<Option<DBVector>, String>[src]

pub fn get_cf(
    &self,
    cf: &CFHandle,
    key: &[u8]
) -> Result<Option<DBVector>, String>
[src]

Trait Implementations

impl<D: Deref<Target = DB>> Drop for Snapshot<D>[src]

impl<D: Deref<Target = DB> + Send + Sync> Sync for Snapshot<D>[src]

impl<D: Deref<Target = DB> + Send + Sync> Send for Snapshot<D>[src]

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.