[−][src]Struct leveldb::database::snapshots::Snapshot
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]
&'a self,
options: ReadOptions<'a, K>,
key: BK
) -> Result<Option<Vec<u8>>, Error>
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]
ⓘImportant traits for Iterator<'a, K>fn iter(&'a self, options: ReadOptions<'a, K>) -> Iterator<K>
[src]
ⓘImportant traits for Iterator<'a, K>
ⓘImportant traits for KeyIterator<'a, K>fn keys_iter(&'a self, options: ReadOptions<'a, K>) -> KeyIterator<K>
[src]
ⓘImportant traits for KeyIterator<'a, K>
ⓘImportant traits for ValueIterator<'a, K>fn value_iter(&'a self, options: ReadOptions<'a, K>) -> ValueIterator<K>
[src]
ⓘImportant traits for ValueIterator<'a, K>
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,
K: RefUnwindSafe,
impl<'a, K> RefUnwindSafe for Snapshot<'a, K> where
K: RefUnwindSafe,
K: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,