pub struct Validity {
pub not_before: u32,
pub not_after: u32,
}Available on crate feature
rustcrypto only.Expand description
§6.5.5’s not-before/not-after, in seconds since the Matter epoch (2000-01-01 UTC).
Fields§
§not_before: u32not-before.
not_after: u32not-after. Zero is §6.5.5’s “no well-defined expiration time”.
Implementations§
Source§impl Validity
impl Validity
Sourcepub const fn years(from: u32, years: u32) -> Self
pub const fn years(from: u32, years: u32) -> Self
A window of years starting at from.
§6.5.5 permits not-after to be zero, meaning “no well-defined expiration time”, and
this never produces one: a fabric certificate that cannot expire is one that cannot be
rotated on a schedule, and the deployments that need that are rare enough to say so
explicitly with Validity::forever.
Trait Implementations§
impl Copy for Validity
impl Eq for Validity
impl StructuralPartialEq for Validity
Auto Trait Implementations§
impl Forget for Validity
impl Freeze for Validity
impl Move for Validity
impl RefUnwindSafe for Validity
impl Send for Validity
impl Sync for Validity
impl Unpin for Validity
impl UnsafeUnpin for Validity
impl UnwindSafe for Validity
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