pub struct Interval { /* private fields */ }Expand description
The interval the path is built for, in seconds from the epoch.
A signature is placed in an interval rather than at an instant, because what a timestamp proves is an upper bound and the lower one is usually unknown. A certificate takes part in a path only where it was valid across the whole of it: resolving at one end would let a signature made before a certificate existed pass on the strength of a later moment.
Seconds rather than a Time, because a Time is how a certificate wrote
a moment, and this interval is not something a certificate wrote.
Implementations§
Source§impl Interval
impl Interval
Sourcepub fn between(first: i64, second: i64) -> Self
pub fn between(first: i64, second: i64) -> Self
The interval between two moments, whichever way round the caller hands them: an interval is a pair of bounds, not an ordering.
Trait Implementations§
impl Copy for Interval
impl Eq for Interval
impl StructuralPartialEq for Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnsafeUnpin for Interval
impl UnwindSafe for Interval
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