Struct rocksdb::checkpoint::Checkpoint [−][src]
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]
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,
pub 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.
pub 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>,