Struct openssl::asn1::Asn1Time [−][src]
pub struct Asn1Time(_);
Expand description
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 implementation used by OpenSSL.
Implementations
Creates a new time on specified interval in days from now
Creates a new time from the specified time_t
value
Creates a new time corresponding to the specified ASN1 time string.
This corresponds to ASN1_TIME_set_string
.
Creates a new time corresponding to the specified X509 time string.
This corresponds to ASN1_TIME_set_string_X509
.
Requires OpenSSL 1.1.1 or newer.
Methods from Deref<Target = Asn1TimeRef>
Find difference between two times
This corresponds to ASN1_TIME_diff
.
Compare two times
This corresponds to ASN1_TIME_compare
but is implemented using diff
so that it is
also supported on older versions of OpenSSL.
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = Asn1TimeRef
type Target = Asn1TimeRef
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
type Ref = Asn1TimeRef
type Ref = Asn1TimeRef
The type representing a reference to this type.
Constructs an instance of this type from its raw type.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more