Struct openssl::asn1::Asn1TimeRef
source · [−]pub struct Asn1TimeRef(_);
Expand description
Reference to an Asn1Time
Implementations
sourceimpl Asn1TimeRef
impl Asn1TimeRef
sourcepub fn diff(&self, compare: &Self) -> Result<TimeDiff, ErrorStack>
pub fn diff(&self, compare: &Self) -> Result<TimeDiff, ErrorStack>
Find difference between two times
This corresponds to ASN1_TIME_diff
.
sourcepub fn compare(&self, other: &Self) -> Result<Ordering, ErrorStack>
pub fn compare(&self, other: &Self) -> Result<Ordering, ErrorStack>
Compare two times
This corresponds to ASN1_TIME_compare
.
Trait Implementations
sourceimpl AsRef<Asn1TimeRef> for Asn1Time
impl AsRef<Asn1TimeRef> for Asn1Time
sourcefn as_ref(&self) -> &Asn1TimeRef
fn as_ref(&self) -> &Asn1TimeRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<Asn1TimeRef> for Asn1Time
impl Borrow<Asn1TimeRef> for Asn1Time
sourcefn borrow(&self) -> &Asn1TimeRef
fn borrow(&self) -> &Asn1TimeRef
Immutably borrows from an owned value. Read more
sourceimpl Debug for Asn1TimeRef
impl Debug for Asn1TimeRef
sourceimpl Display for Asn1TimeRef
impl Display for Asn1TimeRef
sourceimpl ForeignTypeRef for Asn1TimeRef
impl ForeignTypeRef for Asn1TimeRef
sourceimpl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time
impl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time
sourcefn eq(&self, other: &&'a Asn1TimeRef) -> bool
fn eq(&self, other: &&'a Asn1TimeRef) -> bool
sourceimpl PartialEq<Asn1TimeRef> for Asn1Time
impl PartialEq<Asn1TimeRef> for Asn1Time
sourcefn eq(&self, other: &Asn1TimeRef) -> bool
fn eq(&self, other: &Asn1TimeRef) -> bool
sourceimpl PartialEq<Asn1TimeRef> for Asn1TimeRef
impl PartialEq<Asn1TimeRef> for Asn1TimeRef
sourcefn eq(&self, other: &Asn1TimeRef) -> bool
fn eq(&self, other: &Asn1TimeRef) -> bool
sourceimpl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time
impl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time
sourcefn partial_cmp(&self, other: &&'a Asn1TimeRef) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a Asn1TimeRef) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<'a> PartialOrd<Asn1Time> for &'a Asn1TimeRef
impl<'a> PartialOrd<Asn1Time> for &'a Asn1TimeRef
sourcefn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering>
fn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Asn1Time> for Asn1TimeRef
impl PartialOrd<Asn1Time> for Asn1TimeRef
sourcefn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering>
fn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Asn1TimeRef> for Asn1Time
impl PartialOrd<Asn1TimeRef> for Asn1Time
sourcefn partial_cmp(&self, other: &Asn1TimeRef) -> Option<Ordering>
fn partial_cmp(&self, other: &Asn1TimeRef) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Asn1TimeRef> for Asn1TimeRef
impl PartialOrd<Asn1TimeRef> for Asn1TimeRef
sourcefn partial_cmp(&self, other: &Asn1TimeRef) -> Option<Ordering>
fn partial_cmp(&self, other: &Asn1TimeRef) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Send for Asn1TimeRef
impl Sync for Asn1TimeRef
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more