[−][src]Struct rexrocksdb::rocksdb::Snapshot
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]
ⓘImportant traits for &'b mut DBIterator<D>
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>
ⓘImportant traits for &'b mut DBIterator<D>pub fn iter_opt(&self, opt: ReadOptions) -> DBIterator<&DB>
[src]
ⓘImportant traits for &'b mut DBIterator<D>
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]
&self,
cf: &CFHandle,
key: &[u8]
) -> Result<Option<DBVector>, String>
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]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,