pub trait FromASN1WithBody: Sized {
type Error: From<ASN1DecodeErr>;
// Required method
fn from_asn1_with_body<'a>(
v: &'a [ASN1Block],
_b: &[u8],
) -> Result<(Self, &'a [ASN1Block]), Self::Error>;
}
Expand description
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.
Required Associated Types§
type Error: From<ASN1DecodeErr>
Required Methods§
fn from_asn1_with_body<'a>( v: &'a [ASN1Block], _b: &[u8], ) -> Result<(Self, &'a [ASN1Block]), Self::Error>
Object Safety§
This trait is not object safe.