pub struct FreshnessWindow {
pub window: Duration,
pub grace: Duration,
}Expand description
The freshness window applied to time attestations (§14
time-freshness-window): attestations inside the window are fresh;
inside grace but outside the window they downgrade; older reject.
Fields§
§window: DurationMaximum age of a time attestation.
grace: DurationSecondary grace period at downgraded classification.
Trait Implementations§
Source§impl Clone for FreshnessWindow
impl Clone for FreshnessWindow
Source§fn clone(&self) -> FreshnessWindow
fn clone(&self) -> FreshnessWindow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FreshnessWindow
Source§impl Debug for FreshnessWindow
impl Debug for FreshnessWindow
Auto Trait Implementations§
impl Freeze for FreshnessWindow
impl RefUnwindSafe for FreshnessWindow
impl Send for FreshnessWindow
impl Sync for FreshnessWindow
impl Unpin for FreshnessWindow
impl UnsafeUnpin for FreshnessWindow
impl UnwindSafe for FreshnessWindow
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