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