Struct asn1::GeneralizedTime
source · pub struct GeneralizedTime(/* private fields */);
Expand description
Used for parsing and writing ASN.1 GENERALIZED TIME
values. Wraps a
DateTime
.
Implementations§
source§impl GeneralizedTime
impl GeneralizedTime
pub fn new(dt: DateTime) -> ParseResult<GeneralizedTime>
pub fn as_datetime(&self) -> &DateTime
Trait Implementations§
source§impl Clone for GeneralizedTime
impl Clone for GeneralizedTime
source§fn clone(&self) -> GeneralizedTime
fn clone(&self) -> GeneralizedTime
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GeneralizedTime
impl Debug for GeneralizedTime
source§impl Hash for GeneralizedTime
impl Hash for GeneralizedTime
source§impl PartialEq for GeneralizedTime
impl PartialEq for GeneralizedTime
source§fn eq(&self, other: &GeneralizedTime) -> bool
fn eq(&self, other: &GeneralizedTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SimpleAsn1Readable<'_> for GeneralizedTime
impl SimpleAsn1Readable<'_> for GeneralizedTime
const TAG: Tag = _
fn parse_data(data: &[u8]) -> ParseResult<GeneralizedTime>
source§impl SimpleAsn1Writable for GeneralizedTime
impl SimpleAsn1Writable for GeneralizedTime
const TAG: Tag = _
fn write_data(&self, dest: &mut WriteBuf) -> WriteResult
impl Eq for GeneralizedTime
impl StructuralPartialEq for GeneralizedTime
Auto Trait Implementations§
impl RefUnwindSafe for GeneralizedTime
impl Send for GeneralizedTime
impl Sync for GeneralizedTime
impl Unpin for GeneralizedTime
impl UnwindSafe for GeneralizedTime
Blanket Implementations§
source§impl<'a, T> Asn1Readable<'a> for Twhere
T: SimpleAsn1Readable<'a>,
impl<'a, T> Asn1Readable<'a> for Twhere
T: SimpleAsn1Readable<'a>,
source§impl<T> Asn1Writable for Twhere
T: SimpleAsn1Writable,
impl<T> Asn1Writable for Twhere
T: SimpleAsn1Writable,
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