[−]Struct openssl::asn1::Asn1Time
Time storage and comparison
Asn1Time should be used to store and share time information using certificates. If Asn1Time is set using a string, it must be in either YYMMDDHHMMSSZ, YYYYMMDDHHMMSSZ, or another ASN.1 format.
ASN_TIME_set documentation at OpenSSL explains the ASN.1 implementaiton used by OpenSSL.
Methods
impl Asn1Time
[src]
pub fn days_from_now(days: u32) -> Result<Asn1Time, ErrorStack>
[src]
Creates a new time on specified interval in days from now
pub fn from_str(s: &str) -> Result<Asn1Time, ErrorStack>
[src]
Creates a new time corresponding to the specified ASN1 time string.
This corresponds to ASN1_TIME_set_string
.
Trait Implementations
impl Drop for Asn1Time
fn drop(&mut self)
impl AsRef<Asn1TimeRef> for Asn1Time
fn as_ref(&self) -> &Asn1TimeRef
impl Sync for Asn1Time
[src]
impl Send for Asn1Time
[src]
impl Deref for Asn1Time
impl DerefMut for Asn1Time
fn deref_mut(&mut self) -> &mut Asn1TimeRef
impl Borrow<Asn1TimeRef> for Asn1Time
fn borrow(&self) -> &Asn1TimeRef
impl ForeignType for Asn1Time
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,