[−]Struct openssl::asn1::Asn1TimeRef
Reference to an Asn1Time
Methods
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 Send for Asn1TimeRef
[src]
impl Sync for Asn1TimeRef
[src]
impl AsRef<Asn1TimeRef> for Asn1Time
fn as_ref(&self) -> &Asn1TimeRef
impl PartialOrd<Asn1TimeRef> for Asn1TimeRef
[src]
fn partial_cmp(&self, other: &Asn1TimeRef) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Asn1Time> for Asn1TimeRef
[src]
fn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialOrd<Asn1Time> for &'a Asn1TimeRef
[src]
fn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Asn1TimeRef> for Asn1Time
[src]
fn partial_cmp(&self, other: &Asn1TimeRef) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time
[src]
fn partial_cmp(&self, other: &&'a Asn1TimeRef) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Asn1TimeRef> for Asn1TimeRef
[src]
fn eq(&self, other: &Asn1TimeRef) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Asn1Time> for Asn1TimeRef
[src]
impl<'a> PartialEq<Asn1Time> for &'a Asn1TimeRef
[src]
impl PartialEq<Asn1TimeRef> for Asn1Time
[src]
fn eq(&self, other: &Asn1TimeRef) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time
[src]
fn eq(&self, other: &&'a Asn1TimeRef) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Display for Asn1TimeRef
[src]
impl Borrow<Asn1TimeRef> for Asn1Time
fn borrow(&self) -> &Asn1TimeRef
impl ForeignTypeRef for Asn1TimeRef
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,