[][src]Struct red_asn1::GeneralizedTime

pub struct GeneralizedTime { /* fields omitted */ }

Class to encode/decode GeneralizedTime ASN1

Methods

impl GeneralizedTime[src]

pub fn set_format(&mut self, format: TimeFormat)[src]

pub fn value(&self) -> Option<&DateTime<Utc>>[src]

Trait Implementations

impl Asn1Object for GeneralizedTime[src]

fn encode_tag(&self) -> Vec<u8>[src]

To encode the tag to DER, should not be overwritten

fn decode_tag(&self, raw_tag: &[u8]) -> Result<usize>[src]

To decode the tag from DER, should not be overwritten

fn encode_length(&self, value_size: usize) -> Vec<u8>[src]

To encode the object value length to DER, should not be overwritten

fn decode_length(&self, raw_length: &[u8]) -> Result<(usize, usize)>[src]

To decode the object value length from DER, should not be overwritten

fn encode(&self) -> Result<Vec<u8>>[src]

To encode the object to DER, generally does not need to be overwritten. Usually, just encode_value should be overwritten Read more

fn decode(&mut self, raw: &[u8]) -> Result<usize>[src]

To decode the object from DER, generally does not need to be overwritten. Usually, just decode_value should be overwritten Read more

impl Default for GeneralizedTime[src]

impl From<DateTime<Utc>> for GeneralizedTime[src]

impl PartialEq<GeneralizedTime> for GeneralizedTime[src]

impl Debug for GeneralizedTime[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]