[][src]Struct leveldb::database::snapshots::Snapshot

pub struct Snapshot<'a, K: Key + 'a> { /* fields omitted */ }

A database snapshot

Represents a database at a certain point in time, and allows for all read operations (get and iteration).

Methods

impl<'a, K: Key> Snapshot<'a, K>[src]

pub fn get<BK: Borrow<K>>(
    &'a self,
    options: ReadOptions<'a, K>,
    key: BK
) -> Result<Option<Vec<u8>>, Error>
[src]

fetches a key from the database

Inserts this snapshot into ReadOptions before reading

pub fn raw_ptr(&self) -> *mut leveldb_snapshot_t[src]

Trait Implementations

impl<'a, K: Key + 'a> Iterable<'a, K> for Snapshot<'a, K>[src]

Auto Trait Implementations

impl<'a, K> !Send for Snapshot<'a, K>

impl<'a, K> Unpin for Snapshot<'a, K>

impl<'a, K> !Sync for Snapshot<'a, K>

impl<'a, K> UnwindSafe for Snapshot<'a, K> where
    K: RefUnwindSafe

impl<'a, K> RefUnwindSafe for Snapshot<'a, K> where
    K: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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