[−][src]Struct red_asn1::GeneralizedTime
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 tag(&self) -> Tag
[src]
fn encode_value(&self) -> Result<Vec<u8>>
[src]
fn decode_value(&mut self, raw: &[u8]) -> Result<()>
[src]
fn unset_value(&mut self)
[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]
fn default() -> GeneralizedTime
[src]
impl From<DateTime<Utc>> for GeneralizedTime
[src]
impl PartialEq<GeneralizedTime> for GeneralizedTime
[src]
fn eq(&self, other: &GeneralizedTime) -> bool
[src]
fn ne(&self, other: &GeneralizedTime) -> bool
[src]
impl Debug for GeneralizedTime
[src]
Auto Trait Implementations
impl Sync for GeneralizedTime
impl Send for GeneralizedTime
impl Unpin for GeneralizedTime
impl RefUnwindSafe for GeneralizedTime
impl UnwindSafe for GeneralizedTime
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,