[−][src]Struct rocks::snapshot::ManagedSnapshot
Simple RAII wrapper class for Snapshot. Constructing this object will create a snapshot. Destructing will release the snapshot.
Note: this is a pure rust implementation
Implementations
impl<'a, 'b> ManagedSnapshot<'a, 'b>
[src]
pub fn new(db: &'b DB) -> ManagedSnapshot<'a, 'b>
[src]
Methods from Deref<Target = Snapshot<'a>>
pub fn get_sequence_number(&self) -> SequenceNumber
[src]
Trait Implementations
impl<'a, 'b> AsRef<Snapshot<'a>> for ManagedSnapshot<'a, 'b>
[src]
impl<'a, 'b: 'a> Deref for ManagedSnapshot<'a, 'b>
[src]
type Target = Snapshot<'a>
The resulting type after dereferencing.
fn deref<'c>(&'c self) -> &'c Snapshot<'a>
[src]
impl<'a, 'b> Drop for ManagedSnapshot<'a, 'b>
[src]
Auto Trait Implementations
impl<'a, 'b> RefUnwindSafe for ManagedSnapshot<'a, 'b>
impl<'a, 'b> Send for ManagedSnapshot<'a, 'b>
impl<'a, 'b> Sync for ManagedSnapshot<'a, 'b>
impl<'a, 'b> Unpin for ManagedSnapshot<'a, 'b>
impl<'a, 'b> UnwindSafe for ManagedSnapshot<'a, 'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,