pub struct ClockProvenance {
pub source: ClockSource,
pub epoch_secs: u64,
pub reproducible: bool,
}Expand description
The instant a run measured commit ages and staleness against.
A consumer reading weighted_commits, stale_days, or anything derived
from them needs to know whether re-running over the same commit yields the
same number. The human report says so in a warning that --quiet removes,
which left the JSON consumer, who cannot see stderr at all, with no way to
find out.
Fields§
§source: ClockSourceWhich of the three sources supplied the epoch.
epoch_secs: u64The reference epoch itself, in unix seconds. Pass it back as
FALLOW_CLOCK_EPOCH to reproduce this run’s churn-derived numbers.
reproducible: boolFalse only for wall_clock, where the numbers drift between runs.
Trait Implementations§
Source§impl Clone for ClockProvenance
impl Clone for ClockProvenance
impl Copy for ClockProvenance
Source§impl Debug for ClockProvenance
impl Debug for ClockProvenance
Source§impl<'de> Deserialize<'de> for ClockProvenance
impl<'de> Deserialize<'de> for ClockProvenance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClockProvenance
Source§impl PartialEq for ClockProvenance
impl PartialEq for ClockProvenance
Source§impl Serialize for ClockProvenance
impl Serialize for ClockProvenance
impl StructuralPartialEq for ClockProvenance
Auto Trait Implementations§
impl Freeze for ClockProvenance
impl RefUnwindSafe for ClockProvenance
impl Send for ClockProvenance
impl Sync for ClockProvenance
impl Unpin for ClockProvenance
impl UnsafeUnpin for ClockProvenance
impl UnwindSafe for ClockProvenance
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.