Struct ruplicity::collections::BackupChain
source · pub struct BackupChain { /* private fields */ }
Expand description
Contains information about a backup chain.
A backup chain is composed by one full and all the incremental backup snapshots before the next full one.
Implementations§
source§impl BackupChain
impl BackupChain
sourcepub fn new(fullset: BackupSet) -> Self
pub fn new(fullset: BackupSet) -> Self
Create a new BackupChain starting from a full backup set.
sourcepub fn add_inc(&mut self, incset: BackupSet) -> Option<BackupSet>
pub fn add_inc(&mut self, incset: BackupSet) -> Option<BackupSet>
Adds the given incremental backup element to the backup chain if possible, returns it back otherwise.
sourcepub fn inc_sets(&self) -> BackupSetIter<'_>
pub fn inc_sets(&self) -> BackupSetIter<'_>
Returns an iterator over the incremental sets in the chain.
sourcepub fn start_time(&self) -> Timespec
pub fn start_time(&self) -> Timespec
Returns the time of the first backup set in the chain.
Trait Implementations§
source§impl Debug for BackupChain
impl Debug for BackupChain
Auto Trait Implementations§
impl RefUnwindSafe for BackupChain
impl Send for BackupChain
impl Sync for BackupChain
impl Unpin for BackupChain
impl UnwindSafe for BackupChain
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