pub struct SyncStamp {
pub digest: String,
pub generation: u64,
pub issues: usize,
pub projects: Vec<(String, String)>,
pub at: String,
}Expand description
What a mirror was generated against, written into its header so a reader can tell whether the file still matches the tracker.
Every field but at is a function of the corpus, so two runs over an
unchanged tracker differ only in the timestamp.
Fields§
§digest: String§generation: u64§issues: usize§projects: Vec<(String, String)>Project name paired with its sub-digest, so a staleness check can name which project moved rather than only that something did.
at: StringImplementations§
Source§impl SyncStamp
impl SyncStamp
pub fn from_digest(digest: &CorpusDigest, at: String) -> Self
Sourcepub fn render(&self) -> String
pub fn render(&self) -> String
The stamp body, without the comment markers a format wraps it in.
Written without spaces inside any field so the line splits on whitespace.
Trait Implementations§
impl Eq for SyncStamp
impl StructuralPartialEq for SyncStamp
Auto Trait Implementations§
impl Freeze for SyncStamp
impl RefUnwindSafe for SyncStamp
impl Send for SyncStamp
impl Sync for SyncStamp
impl Unpin for SyncStamp
impl UnsafeUnpin for SyncStamp
impl UnwindSafe for SyncStamp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.