pub struct Backup {
pub src: PathBuf,
pub policy: PathBuf,
pub repos: Vec<String>,
pub ops: usize,
pub bytes: u64,
}Expand description
What the backup turned out to hold, after every read-side check.
Fields§
§src: PathBufThe backup directory.
policy: PathBufWhere the policy files are readable from — the backup’s own
policy/, or a work directory the tar was unpacked into.
repos: Vec<String>Repository names from repos.list, in file order.
ops: usizeLines in the backed-up log, which is also the seq the canary will land at.
bytes: u64Bytes in the backed-up log, for the prefix check at the end.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backup
impl RefUnwindSafe for Backup
impl Send for Backup
impl Sync for Backup
impl Unpin for Backup
impl UnsafeUnpin for Backup
impl UnwindSafe for Backup
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