Skip to main content

FromDer

Trait FromDer 

Source
pub(crate) trait FromDer<'a>: Sized + 'a {
    const TYPE_ID: DerTypeId;

    // Required method
    fn from_der(reader: &mut Reader<'a>) -> Result<Self, Error>;
}

Required Associated Constants§

Required Methods§

Source

fn from_der(reader: &mut Reader<'a>) -> Result<Self, Error>

Parse a value of type Self from the given DER-encoded input.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a> FromDer<'a> for UnixTime

Source§

const TYPE_ID: DerTypeId = DerTypeId::Time

Source§

fn from_der(input: &mut Reader<'a>) -> Result<Self, Error>

Source§

impl<'a> FromDer<'a> for bool

Source§

const TYPE_ID: DerTypeId = DerTypeId::Bool

Source§

fn from_der(reader: &mut Reader<'a>) -> Result<Self, Error>

Source§

impl<'a> FromDer<'a> for u8

Source§

const TYPE_ID: DerTypeId = DerTypeId::U8

Source§

fn from_der(reader: &mut Reader<'a>) -> Result<Self, Error>

Implementors§

Source§

impl<'a> FromDer<'a> for BorrowedCertRevocationList<'a>

Source§

const TYPE_ID: DerTypeId = DerTypeId::CertRevocationList

Source§

impl<'a> FromDer<'a> for BorrowedRevokedCert<'a>

Source§

const TYPE_ID: DerTypeId = DerTypeId::RevokedCertificate

Source§

impl<'a> FromDer<'a> for CrlDistributionPoint<'a>

Source§

const TYPE_ID: DerTypeId = DerTypeId::CrlDistributionPoint

Source§

impl<'a> FromDer<'a> for DistributionPointName<'a>

Source§

const TYPE_ID: DerTypeId = DerTypeId::DistributionPointName

Source§

impl<'a> FromDer<'a> for Extension<'a>

Source§

const TYPE_ID: DerTypeId = DerTypeId::Extension

Source§

impl<'a> FromDer<'a> for GeneralName<'a>

Source§

const TYPE_ID: DerTypeId = DerTypeId::GeneralName

Source§

impl<'a> FromDer<'a> for RevocationReason

Source§

const TYPE_ID: DerTypeId = DerTypeId::RevocationReason

Source§

impl<'a> FromDer<'a> for SubjectPublicKeyInfo<'a>

Source§

const TYPE_ID: DerTypeId = DerTypeId::SubjectPublicKeyInfo