pub struct BackupEngineInfo {
pub timestamp: i64,
pub backup_id: u32,
pub size: u64,
pub num_files: u32,
pub app_metadata: Vec<u8>,
}Expand description
Represents information of a backup including timestamp of the backup and the size (please note that sum of all backups’ sizes is bigger than the actual size of the backup directory because some data is shared by multiple backups). Backups are identified by their always-increasing IDs.
Fields§
§timestamp: i64Timestamp of the backup
backup_id: u32ID of the backup
size: u64Size of the backup
num_files: u32Number of files related to the backup
app_metadata: Vec<u8>Application metadata passed to
BackupEngine::create_new_backup_with_metadata.
Empty when the backup carries no metadata. RocksDB stores the metadata
as a std::string and skips writing it when empty, so an absent value
and an empty value are indistinguishable on read back.
Auto Trait Implementations§
impl Freeze for BackupEngineInfo
impl RefUnwindSafe for BackupEngineInfo
impl Send for BackupEngineInfo
impl Sync for BackupEngineInfo
impl Unpin for BackupEngineInfo
impl UnsafeUnpin for BackupEngineInfo
impl UnwindSafe for BackupEngineInfo
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