[][src]Struct rocks::snapshot::ManagedSnapshot

pub struct ManagedSnapshot<'a, 'b: 'a> { /* fields omitted */ }

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>>

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.

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]

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.