pub struct Time { /* private fields */ }Expand description
A moment, and how the certificate wrote it.
Two times are equal when they name the same moment. The form is what the certificate used to say it, not part of which moment it is.
Implementations§
Source§impl Time
impl Time
Sourcepub fn seconds(self) -> i64
pub fn seconds(self) -> i64
POSIX label, negative before the epoch. For an inserted second this
is the preceding ordinary second’s label. Use Self::instant for
comparisons and crate::temporal::LeapTable for elapsed arithmetic.
Sourcepub fn instant(self) -> Instant
pub fn instant(self) -> Instant
The lossless UTC label; parsing does not authenticate its occurrence.
Sourcepub fn is_leap_second(self) -> bool
pub fn is_leap_second(self) -> bool
Whether the encoded time labels an inserted second.
Sourcepub fn is_no_well_defined_expiry(self) -> bool
pub fn is_no_well_defined_expiry(self) -> bool
Whether this is the moment the profile uses to mean that no expiry was defined. What that means for a verdict is a policy question, and this only reports that the certificate said it.
Trait Implementations§
impl Copy for Time
impl Eq for Time
Source§impl Ord for Time
impl Ord for Time
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnsafeUnpin for Time
impl UnwindSafe for Time
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