pub(crate) struct ExpiryHours(pub(crate) u32);Expand description
A certificate expiration time, represented in hours since the unix epoch.
Tuple Fields§
§0: u32Implementations§
Source§impl ExpiryHours
impl ExpiryHours
Sourcepub(crate) fn try_from_systemtime_ceil(
expiry: SystemTime,
) -> Result<Self, CertEncodeError>
pub(crate) fn try_from_systemtime_ceil( expiry: SystemTime, ) -> Result<Self, CertEncodeError>
Return the earliest possible ExpiryHours that is no earlier than expiry.
Trait Implementations§
Source§impl Clone for ExpiryHours
impl Clone for ExpiryHours
Source§fn clone(&self) -> ExpiryHours
fn clone(&self) -> ExpiryHours
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 moreSource§impl Debug for ExpiryHours
impl Debug for ExpiryHours
Source§impl From<ExpiryHours> for SystemTime
impl From<ExpiryHours> for SystemTime
Source§fn from(value: ExpiryHours) -> Self
fn from(value: ExpiryHours) -> Self
Converts to this type from the input type.
Source§impl Readable for ExpiryHours
impl Readable for ExpiryHours
Source§impl Writeable for ExpiryHours
impl Writeable for ExpiryHours
Source§fn write_onto<B: Writer + ?Sized>(&self, b: &mut B) -> EncodeResult<()>
fn write_onto<B: Writer + ?Sized>(&self, b: &mut B) -> EncodeResult<()>
Encode this object into the writer
b.impl Copy for ExpiryHours
Auto Trait Implementations§
impl Freeze for ExpiryHours
impl RefUnwindSafe for ExpiryHours
impl Send for ExpiryHours
impl Sync for ExpiryHours
impl Unpin for ExpiryHours
impl UnsafeUnpin for ExpiryHours
impl UnwindSafe for ExpiryHours
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<W> WriteableOnce for Wwhere
W: Writeable,
impl<W> WriteableOnce for Wwhere
W: Writeable,
Source§fn write_into<B>(self, b: &mut B) -> Result<(), EncodeError>
fn write_into<B>(self, b: &mut B) -> Result<(), EncodeError>
Encode this object into the writer
b, and consume it.