pub struct TransactionDBCheckpoint<'db> { /* private fields */ }Expand description
TransactionDB checkpoint object.
Used to create physical checkpoints of a TransactionDB.
Implementations§
Source§impl<'db> TransactionDBCheckpoint<'db>
impl<'db> TransactionDBCheckpoint<'db>
Sourcepub fn new<T: ThreadMode>(db: &'db TransactionDB<T>) -> Result<Self, Error>
pub fn new<T: ThreadMode>(db: &'db TransactionDB<T>) -> Result<Self, Error>
Creates a new checkpoint object for the specified TransactionDB.
Does not actually produce checkpoints, call .create_checkpoint() or
.create_checkpoint_with_log_size() to produce a DB checkpoint.
Sourcepub fn create_checkpoint<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>
pub fn create_checkpoint<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>
Creates a new physical RocksDB checkpoint in the directory specified by path.
See Checkpoint::create_checkpoint for details on checkpoint behavior and
the default log_size_for_flush value.
Sourcepub fn create_checkpoint_with_log_size<P: AsRef<Path>>(
&self,
path: P,
log_size_for_flush: u64,
) -> Result<(), Error>
pub fn create_checkpoint_with_log_size<P: AsRef<Path>>( &self, path: P, log_size_for_flush: u64, ) -> Result<(), Error>
Creates a new physical RocksDB checkpoint in path, allowing the caller to
control log_size_for_flush.
See Checkpoint::create_checkpoint_with_log_size for the semantics of
log_size_for_flush.
Trait Implementations§
Source§impl Drop for TransactionDBCheckpoint<'_>
impl Drop for TransactionDBCheckpoint<'_>
Auto Trait Implementations§
impl<'db> !Send for TransactionDBCheckpoint<'db>
impl<'db> !Sync for TransactionDBCheckpoint<'db>
impl<'db> Freeze for TransactionDBCheckpoint<'db>
impl<'db> RefUnwindSafe for TransactionDBCheckpoint<'db>
impl<'db> Unpin for TransactionDBCheckpoint<'db>
impl<'db> UnsafeUnpin for TransactionDBCheckpoint<'db>
impl<'db> UnwindSafe for TransactionDBCheckpoint<'db>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more