Trait rasn::de::Decode[][src]

pub trait Decode: Sized + AsnType {
    fn decode_with_tag<D: Decoder>(
        decoder: &mut D,
        tag: Tag
    ) -> Result<Self, D::Error>; fn decode<D: Decoder>(decoder: &mut D) -> Result<Self, D::Error> { ... } }

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]

Decode this value implicitly tagged with tag from a given ASN.1 decoder.

Loading content...

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.

Loading content...

Implementations on Foreign Types

impl<D: Decode> Decode for Option<D>[src]

impl<T: Decode> Decode for Vec<T>[src]

impl Decode for BTreeMap<Tag, Open>[src]

Loading content...

Implementors

impl Decode for ()[src]

impl Decode for Open[src]

impl Decode for Integer[src]

impl Decode for ObjectIdentifier[src]

impl Decode for OctetString[src]

impl Decode for Utf8String[src]

impl Decode for BitString[src]

impl Decode for GeneralizedTime[src]

impl Decode for UtcTime[src]

impl Decode for bool[src]

impl Decode for i8[src]

impl Decode for i16[src]

impl Decode for i32[src]

impl Decode for i64[src]

impl Decode for i128[src]

impl Decode for isize[src]

impl Decode for u8[src]

impl Decode for u16[src]

impl Decode for u32[src]

impl Decode for u64[src]

impl Decode for u128[src]

impl Decode for usize[src]

impl<T: AsnType, V: Decode> Decode for Explicit<T, V>[src]

impl<T: AsnType, V: Decode> Decode for Implicit<T, V>[src]

impl<T: Decode> Decode for InstanceOf<T>[src]

Loading content...