[−][src]Trait asn1_der::traits::FromDerObject
A trait to parse DerObject
s into native types
Required methods
fn from_der_object(der_object: DerObject) -> Result<Self, Error<Asn1DerError>>
Converts a DerElement
into Self
Returns either the successfully parsed object or on error:
Asn1DerError::InvalidEncoding
if the encoded type does not conform to the DER-encoding rulesAsn1DerError::Unsupported
if the encoded object is unsupported by this implementation (e.g. an integer that is too large)Asn1DerError::InvalidTag
if the tag annotates an incompatible type
Implementations on Foreign Types
impl FromDerObject for ()
[src]
fn from_der_object(der_object: DerObject) -> Result<Self, Error<Asn1DerError>>
[src]
impl FromDerObject for bool
[src]
fn from_der_object(der_object: DerObject) -> Result<Self, Error<Asn1DerError>>
[src]
impl FromDerObject for Vec<u8>
[src]
fn from_der_object(der_object: DerObject) -> Result<Self, Error<Asn1DerError>>
[src]
impl FromDerObject for String
[src]
fn from_der_object(der_object: DerObject) -> Result<Self, Error<Asn1DerError>>
[src]
impl FromDerObject for u64
[src]
fn from_der_object(der_object: DerObject) -> Result<Self, Error<Asn1DerError>>
[src]
impl<T> FromDerObject for Vec<T> where
T: FromDerObject,
[src]
T: FromDerObject,