pub struct BackupEngineOptions { /* private fields */ }Implementations§
Source§impl BackupEngineOptions
impl BackupEngineOptions
Sourcepub fn new<P: AsRef<Path>>(backup_dir: P) -> Result<Self, Error>
pub fn new<P: AsRef<Path>>(backup_dir: P) -> Result<Self, Error>
Initializes BackupEngineOptions with the directory to be used for storing/accessing the
backup files.
Sourcepub fn set_max_background_operations(&mut self, max_background_operations: i32)
pub fn set_max_background_operations(&mut self, max_background_operations: i32)
Sets the number of operations (such as file copies or file checksums) that RocksDB may
perform in parallel when executing a backup or restore.
Default: 1
Trait Implementations§
Source§impl Drop for BackupEngineOptions
impl Drop for BackupEngineOptions
Auto Trait Implementations§
impl !Send for BackupEngineOptions
impl !Sync for BackupEngineOptions
impl Freeze for BackupEngineOptions
impl RefUnwindSafe for BackupEngineOptions
impl Unpin for BackupEngineOptions
impl UnsafeUnpin for BackupEngineOptions
impl UnwindSafe for BackupEngineOptions
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