Trait rasn::de::Decode [−][src]
A data type that can decoded from any ASN.1 format.
Required methods
fn decode_with_tag<D: Decoder>(
decoder: &mut D,
tag: Tag
) -> Result<Self, D::Error>
[src]
decoder: &mut D,
tag: Tag
) -> Result<Self, D::Error>
Decode this value implicitly tagged with tag
from a given ASN.1 decoder.
Provided methods
fn decode<D: Decoder>(decoder: &mut D) -> Result<Self, D::Error>
[src]
Decode this value from a given ASN.1 decoder.
Note for implementors You typically do not need to implement this.
The default implementation will call Decode::decode_with_tag
with
your types associated AsnType::TAG
. You should only ever need to
implement this if you have a type that cannot be implicitly tagged,
such as a CHOICE
type.