pub enum ClockStatus {
Ok {
current: DateTime<Utc>,
},
Backwards {
drift: Duration,
last_seen: DateTime<Utc>,
current: DateTime<Utc>,
},
SuspiciousJump {
jump: Duration,
last_seen: DateTime<Utc>,
current: DateTime<Utc>,
},
}Expand description
Result of clock manipulation check
Variants§
Ok
Clock is within acceptable range
Backwards
Clock moved backwards (possible manipulation)
SuspiciousJump
Clock jumped forward suspiciously far
Implementations§
Trait Implementations§
Source§impl Clone for ClockStatus
impl Clone for ClockStatus
Source§fn clone(&self) -> ClockStatus
fn clone(&self) -> ClockStatus
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 ClockStatus
impl Debug for ClockStatus
Source§impl<'de> Deserialize<'de> for ClockStatus
impl<'de> Deserialize<'de> for ClockStatus
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 ClockStatus
impl RefUnwindSafe for ClockStatus
impl Send for ClockStatus
impl Sync for ClockStatus
impl Unpin for ClockStatus
impl UnsafeUnpin for ClockStatus
impl UnwindSafe for ClockStatus
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