Struct rocksdb::backup::BackupEngineOptions
source · 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§
Auto Trait Implementations§
impl RefUnwindSafe for BackupEngineOptions
impl !Send for BackupEngineOptions
impl !Sync for BackupEngineOptions
impl Unpin 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