#[non_exhaustive]pub enum TimeStatus {
Unknown,
Informative,
Synchronized,
Relative,
}Expand description
Synchronisation state of the clock that stamped a reading [OCMF Tab. 19].
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
U — unknown, unsynchronised.
Informative
I — informative (info clock).
Synchronized
S — synchronized.
Relative
R — relative accounting on a calibration-law-accurate duration that
started from an informative clock.
Implementations§
Source§impl TimeStatus
impl TimeStatus
Sourcepub const fn from_letter(c: u8) -> Option<Self>
pub const fn from_letter(c: u8) -> Option<Self>
Parses the single letter.
Sourcepub const fn instant_is_billable(self) -> bool
pub const fn instant_is_billable(self) -> bool
Whether a point in time from this clock is fit to bill against.
Only S. An informative clock may be minutes out, and R states
precisely that the start instant was not trustworthy even though the
elapsed duration is.
Sourcepub const fn duration_is_billable(self) -> bool
pub const fn duration_is_billable(self) -> bool
Whether a duration between two readings from this clock is fit to bill against.
S and R: the whole point of R is that the duration was recorded
to calibration-law requirements even though the wall-clock start was
only informative.
Sourcepub const fn rank(self) -> u8
pub const fn rank(self) -> u8
How much this clock is worth as evidence, ascending.
U < I < R < S. There is no such ordering in [OCMF Tab. 19]; it is
this crate’s reading of what each letter permits, and it exists so a
sequence of records can be judged by its weakest clock rather than
its best one — see crate::session.
Trait Implementations§
Source§impl Clone for TimeStatus
impl Clone for TimeStatus
impl Copy for TimeStatus
Source§impl Debug for TimeStatus
impl Debug for TimeStatus
impl Eq for TimeStatus
Source§impl Hash for TimeStatus
impl Hash for TimeStatus
Source§impl PartialEq for TimeStatus
impl PartialEq for TimeStatus
Source§impl Serialize for TimeStatus
Available on crate feature serde only.
impl Serialize for TimeStatus
serde only.