pub struct BackupEngine { /* private fields */ }Implementations§
Source§impl BackupEngine
impl BackupEngine
Sourcepub fn open<P: AsRef<Path>>(
opts: &BackupEngineOptions,
path: P,
) -> Result<BackupEngine, Error>
pub fn open<P: AsRef<Path>>( opts: &BackupEngineOptions, path: P, ) -> Result<BackupEngine, Error>
Open a backup engine with the specified options.
pub fn create_new_backup(&mut self, db: &DB) -> Result<(), Error>
pub fn purge_old_backups( &mut self, num_backups_to_keep: usize, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackupEngine
impl RefUnwindSafe for BackupEngine
impl !Send for BackupEngine
impl !Sync for BackupEngine
impl Unpin for BackupEngine
impl UnwindSafe for BackupEngine
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