Trait simple_asn1::FromASN1WithBody[][src]

pub trait FromASN1WithBody: Sized {
    type Error: From<ASN1DecodeErr>;
    fn from_asn1_with_body<'a>(
        v: &'a [ASN1Block],
        _b: &[u8]
    ) -> Result<(Self, &'a [ASN1Block]), Self::Error>; }

A trait defining types that can be decoded from an ASN1Block stream, assuming they also have access to the underlying bytes making up the stream.

Associated Types

Loading content...

Required methods

fn from_asn1_with_body<'a>(
    v: &'a [ASN1Block],
    _b: &[u8]
) -> Result<(Self, &'a [ASN1Block]), Self::Error>
[src]

Loading content...

Implementors

impl<T: FromASN1> FromASN1WithBody for T[src]

type Error = T::Error

Loading content...