Struct boring::asn1::Asn1TimeRef
source · pub struct Asn1TimeRef(/* private fields */);
Expand description
A borrowed reference to a Asn1Time
.
Implementations§
source§impl 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
but is implemented using diff
so that it is
also supported on older versions of OpenSSL.
Trait Implementations§
source§impl AsMut<Asn1TimeRef> for Asn1Time
impl AsMut<Asn1TimeRef> for Asn1Time
source§fn as_mut(&mut self) -> &mut Asn1TimeRef
fn as_mut(&mut self) -> &mut Asn1TimeRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<Asn1TimeRef> for Asn1Time
impl AsRef<Asn1TimeRef> for Asn1Time
source§fn as_ref(&self) -> &Asn1TimeRef
fn as_ref(&self) -> &Asn1TimeRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<Asn1TimeRef> for Asn1Time
impl Borrow<Asn1TimeRef> for Asn1Time
source§fn borrow(&self) -> &Asn1TimeRef
fn borrow(&self) -> &Asn1TimeRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<Asn1TimeRef> for Asn1Time
impl BorrowMut<Asn1TimeRef> for Asn1Time
source§fn borrow_mut(&mut self) -> &mut Asn1TimeRef
fn borrow_mut(&mut self) -> &mut Asn1TimeRef
Mutably borrows from an owned value. Read more
source§impl Debug for Asn1TimeRef
impl Debug for Asn1TimeRef
source§impl Display for Asn1TimeRef
impl Display for Asn1TimeRef
source§impl ForeignTypeRef for Asn1TimeRef
impl ForeignTypeRef for Asn1TimeRef
§type CType = asn1_string_st
type CType = asn1_string_st
The raw C type.
source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
source§unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type. Read more
source§impl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time
impl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time
source§fn eq(&self, other: &&'a Asn1TimeRef) -> bool
fn eq(&self, other: &&'a Asn1TimeRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialEq<Asn1Time> for &'a Asn1TimeRef
impl<'a> PartialEq<Asn1Time> for &'a Asn1TimeRef
source§impl PartialEq<Asn1Time> for Asn1TimeRef
impl PartialEq<Asn1Time> for Asn1TimeRef
source§impl PartialEq<Asn1TimeRef> for Asn1Time
impl PartialEq<Asn1TimeRef> for Asn1Time
source§fn eq(&self, other: &Asn1TimeRef) -> bool
fn eq(&self, other: &Asn1TimeRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<Asn1TimeRef> for Asn1TimeRef
impl PartialEq<Asn1TimeRef> for Asn1TimeRef
source§fn eq(&self, other: &Asn1TimeRef) -> bool
fn eq(&self, other: &Asn1TimeRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time
impl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time
source§fn partial_cmp(&self, other: &&'a Asn1TimeRef) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a Asn1TimeRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl<'a> PartialOrd<Asn1Time> for &'a Asn1TimeRef
impl<'a> PartialOrd<Asn1Time> for &'a Asn1TimeRef
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl PartialOrd<Asn1Time> for Asn1TimeRef
impl PartialOrd<Asn1Time> for Asn1TimeRef
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl PartialOrd<Asn1TimeRef> for Asn1Time
impl PartialOrd<Asn1TimeRef> for Asn1Time
source§fn partial_cmp(&self, other: &Asn1TimeRef) -> Option<Ordering>
fn partial_cmp(&self, other: &Asn1TimeRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl PartialOrd<Asn1TimeRef> for Asn1TimeRef
impl PartialOrd<Asn1TimeRef> for Asn1TimeRef
source§fn partial_cmp(&self, other: &Asn1TimeRef) -> Option<Ordering>
fn partial_cmp(&self, other: &Asn1TimeRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more