pub struct ClockState {
pub current_time: DateTime<Utc>,
pub last_validation_time: Option<DateTime<Utc>>,
pub drift_seconds: Option<i64>,
pub status: ClockStatusSummary,
pub timezone: Option<String>,
}Expand description
System clock state information
Fields§
§current_time: DateTime<Utc>Current system time
last_validation_time: Option<DateTime<Utc>>Last recorded validation time (from state)
drift_seconds: Option<i64>Time drift detected (if any)
status: ClockStatusSummaryClock status assessment
timezone: Option<String>System timezone (from environment)
Implementations§
Source§impl ClockState
impl ClockState
Sourcepub fn collect(state: Option<&LicenseState>) -> Self
pub fn collect(state: Option<&LicenseState>) -> Self
Collect clock state information
Trait Implementations§
Source§impl Clone for ClockState
impl Clone for ClockState
Source§fn clone(&self) -> ClockState
fn clone(&self) -> ClockState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClockState
impl Debug for ClockState
Source§impl<'de> Deserialize<'de> for ClockState
impl<'de> Deserialize<'de> for ClockState
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
Auto Trait Implementations§
impl Freeze for ClockState
impl RefUnwindSafe for ClockState
impl Send for ClockState
impl Sync for ClockState
impl Unpin for ClockState
impl UnsafeUnpin for ClockState
impl UnwindSafe for ClockState
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