Struct ruplicity::collections::SignatureChain
source · pub struct SignatureChain { /* private fields */ }
Expand description
Contains information about signatures in a backup chain.
See the docs for BackupChain
.
Implementations§
source§impl SignatureChain
impl SignatureChain
sourcepub fn new(fname: &str, pr: &Info) -> Self
pub fn new(fname: &str, pr: &Info) -> Self
Create a new SignatureChain starting from a full signature.
sourcepub fn from_filename_info(fname_info: &FileNameInfo<'_>) -> Self
pub fn from_filename_info(fname_info: &FileNameInfo<'_>) -> Self
Create a new signature chain from a FileNameInfo
instance.
sourcepub fn add_new_sig(&mut self, fname: &FileNameInfo<'_>) -> bool
pub fn add_new_sig(&mut self, fname: &FileNameInfo<'_>) -> bool
Adds the given incremental signature to the signature chain if possible, returns false otherwise.
sourcepub fn full_signature(&self) -> &SignatureFile
pub fn full_signature(&self) -> &SignatureFile
The file name of the full signature chain.
sourcepub fn inc_signatures(&self) -> SignatureFileIter<'_>
pub fn inc_signatures(&self) -> SignatureFileIter<'_>
A list of file names for incremental signatures.
sourcepub fn start_time(&self) -> Timespec
pub fn start_time(&self) -> Timespec
Returns the time of the first signature in the chain.
Trait Implementations§
source§impl Debug for SignatureChain
impl Debug for SignatureChain
Auto Trait Implementations§
impl RefUnwindSafe for SignatureChain
impl Send for SignatureChain
impl Sync for SignatureChain
impl Unpin for SignatureChain
impl UnwindSafe for SignatureChain
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