Struct openssl::asn1::Asn1TimeRef [−][src]
Reference to an Asn1Time
Implementations
impl Asn1TimeRef
[src][−]
pub fn diff(&self, compare: &Self) -> Result<TimeDiff, ErrorStack>
[src][−]
Find difference between two times
This corresponds to ASN1_TIME_diff
.
pub fn compare(&self, other: &Self) -> Result<Ordering, ErrorStack>
[src][−]
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
impl AsRef<Asn1TimeRef> for Asn1Time
[src][+]
impl Borrow<Asn1TimeRef> for Asn1Time
[src][+]
impl Debug for Asn1TimeRef
[src][+]
impl Display for Asn1TimeRef
[src][+]
impl ForeignTypeRef for Asn1TimeRef
[src][+]
impl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time
[src][+]
impl PartialEq<Asn1Time> for Asn1TimeRef
[src][+]
impl<'a> PartialEq<Asn1Time> for &'a Asn1TimeRef
[src][+]
impl PartialEq<Asn1TimeRef> for Asn1TimeRef
[src][+]
impl PartialEq<Asn1TimeRef> for Asn1Time
[src][+]
impl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time
[src][+]
impl PartialOrd<Asn1Time> for Asn1TimeRef
[src][+]
impl<'a> PartialOrd<Asn1Time> for &'a Asn1TimeRef
[src][+]
impl PartialOrd<Asn1TimeRef> for Asn1TimeRef
[src][+]
impl PartialOrd<Asn1TimeRef> for Asn1Time
[src][+]
impl Send for Asn1TimeRef
[src]
impl Sync for Asn1TimeRef
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,