Struct rocksdb::checkpoint::Checkpoint[][src]

pub struct Checkpoint { /* fields omitted */ }

Database’s checkpoint object. Used to create checkpoints of the specified DB from time to time.

Implementations

impl Checkpoint[src]

pub fn new(db: &DB) -> Result<Checkpoint, Error>[src]

Creates new checkpoint object for specific DB.

Does not actually produce checkpoints, call .create_checkpoint() method to produce a DB checkpoint.

pub fn create_checkpoint<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>[src]

Creates new physical DB checkpoint in directory specified by path.

Trait Implementations

impl Drop for Checkpoint[src]

Auto Trait Implementations

impl RefUnwindSafe for Checkpoint

impl !Send for Checkpoint

impl !Sync for Checkpoint

impl Unpin for Checkpoint

impl UnwindSafe for Checkpoint

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.