Trait asn1_der::FromDerObject
source · [−]pub trait FromDerObject where
Self: Sized, {
fn from_der_object(der_object: DerObject) -> Result<Self, Asn1DerError>;
fn deserialize<'a>(
source: impl Iterator<Item = &'a u8>
) -> Result<Self, Asn1DerError> { ... }
}
Expand description
A trait for converting a DER object into a native element
Required methods
fn from_der_object(der_object: DerObject) -> Result<Self, Asn1DerError>
fn from_der_object(der_object: DerObject) -> Result<Self, Asn1DerError>
Converts der_object
into Self
Provided methods
fn deserialize<'a>(
source: impl Iterator<Item = &'a u8>
) -> Result<Self, Asn1DerError>
fn deserialize<'a>(
source: impl Iterator<Item = &'a u8>
) -> Result<Self, Asn1DerError>
DER-deserializes the data from source