pub struct OcspGeneralizedTime(pub GeneralizedTime);
Expand description
GeneralizedTime
wrapper for easy conversion from legacy UTCTime
OCSP does not support UTCTime
while many other X.509 structures do.
Tuple Fields§
§0: GeneralizedTime
Trait Implementations§
Source§impl<'a> AsMut<GeneralizedTime> for OcspGeneralizedTime
impl<'a> AsMut<GeneralizedTime> for OcspGeneralizedTime
Source§fn as_mut(&mut self) -> &mut GeneralizedTime
fn as_mut(&mut self) -> &mut GeneralizedTime
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<'a> AsMut<OcspGeneralizedTime> for ArchiveCutoff
impl<'a> AsMut<OcspGeneralizedTime> for ArchiveCutoff
Source§fn as_mut(&mut self) -> &mut OcspGeneralizedTime
fn as_mut(&mut self) -> &mut OcspGeneralizedTime
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<'a> AsRef<GeneralizedTime> for OcspGeneralizedTime
impl<'a> AsRef<GeneralizedTime> for OcspGeneralizedTime
Source§fn as_ref(&self) -> &GeneralizedTime
fn as_ref(&self) -> &GeneralizedTime
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'a> AsRef<OcspGeneralizedTime> for ArchiveCutoff
impl<'a> AsRef<OcspGeneralizedTime> for ArchiveCutoff
Source§fn as_ref(&self) -> &OcspGeneralizedTime
fn as_ref(&self) -> &OcspGeneralizedTime
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for OcspGeneralizedTime
impl Clone for OcspGeneralizedTime
Source§fn clone(&self) -> OcspGeneralizedTime
fn clone(&self) -> OcspGeneralizedTime
Returns a duplicate of the value. Read more
1.0.0 · 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 OcspGeneralizedTime
impl Debug for OcspGeneralizedTime
Source§impl<'a> DecodeValue<'a> for OcspGeneralizedTime
impl<'a> DecodeValue<'a> for OcspGeneralizedTime
Source§impl<'a> EncodeValue for OcspGeneralizedTime
impl<'a> EncodeValue for OcspGeneralizedTime
Source§impl<'a> FixedTag for OcspGeneralizedTime
impl<'a> FixedTag for OcspGeneralizedTime
Source§impl<'a> From<ArchiveCutoff> for OcspGeneralizedTime
impl<'a> From<ArchiveCutoff> for OcspGeneralizedTime
Source§fn from(value: ArchiveCutoff) -> Self
fn from(value: ArchiveCutoff) -> Self
Converts to this type from the input type.
Source§impl From<DateTime> for OcspGeneralizedTime
impl From<DateTime> for OcspGeneralizedTime
Source§impl<'a> From<GeneralizedTime> for OcspGeneralizedTime
impl<'a> From<GeneralizedTime> for OcspGeneralizedTime
Source§fn from(value: GeneralizedTime) -> Self
fn from(value: GeneralizedTime) -> Self
Converts to this type from the input type.
Source§impl<'a> From<OcspGeneralizedTime> for ArchiveCutoff
impl<'a> From<OcspGeneralizedTime> for ArchiveCutoff
Source§fn from(value: OcspGeneralizedTime) -> Self
fn from(value: OcspGeneralizedTime) -> Self
Converts to this type from the input type.
Source§impl<'a> From<OcspGeneralizedTime> for GeneralizedTime
impl<'a> From<OcspGeneralizedTime> for GeneralizedTime
Source§fn from(value: OcspGeneralizedTime) -> Self
fn from(value: OcspGeneralizedTime) -> Self
Converts to this type from the input type.
Source§impl From<Time> for OcspGeneralizedTime
impl From<Time> for OcspGeneralizedTime
Source§impl From<UtcTime> for OcspGeneralizedTime
impl From<UtcTime> for OcspGeneralizedTime
Source§impl PartialEq for OcspGeneralizedTime
impl PartialEq for OcspGeneralizedTime
Source§impl TryFrom<SystemTime> for OcspGeneralizedTime
Available on crate feature std
only.
impl TryFrom<SystemTime> for OcspGeneralizedTime
Available on crate feature
std
only.Source§impl<'a> ValueOrd for OcspGeneralizedTime
impl<'a> ValueOrd for OcspGeneralizedTime
impl Copy for OcspGeneralizedTime
impl Eq for OcspGeneralizedTime
impl StructuralPartialEq for OcspGeneralizedTime
Auto Trait Implementations§
impl Freeze for OcspGeneralizedTime
impl RefUnwindSafe for OcspGeneralizedTime
impl Send for OcspGeneralizedTime
impl Sync for OcspGeneralizedTime
impl Unpin for OcspGeneralizedTime
impl UnwindSafe for OcspGeneralizedTime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
Source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.