picky_asn1

Trait Asn1Type

Source
pub trait Asn1Type {
    const TAG: Tag;
    const NAME: &'static str;
}

Required Associated Constants§

Source

const TAG: Tag

Source

const NAME: &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Asn1Type for bool

Source§

const TAG: Tag = Tag::BOOLEAN

Source§

const NAME: &'static str = "bool"

Source§

impl Asn1Type for u8

Source§

const TAG: Tag = Tag::INTEGER

Source§

const NAME: &'static str = "u8"

Source§

impl Asn1Type for u16

Source§

const TAG: Tag = Tag::INTEGER

Source§

const NAME: &'static str = "u16"

Source§

impl Asn1Type for u32

Source§

const TAG: Tag = Tag::INTEGER

Source§

const NAME: &'static str = "u32"

Source§

impl Asn1Type for u64

Source§

const TAG: Tag = Tag::INTEGER

Source§

const NAME: &'static str = "u64"

Source§

impl Asn1Type for u128

Source§

const TAG: Tag = Tag::INTEGER

Source§

const NAME: &'static str = "u128"

Source§

impl Asn1Type for ()

Source§

const TAG: Tag = Tag::NULL

Source§

const NAME: &'static str = "()"

Source§

impl Asn1Type for String

Source§

const TAG: Tag = Tag::UTF8_STRING

Source§

const NAME: &'static str = "String"

Implementors§

Source§

impl Asn1Type for BitStringAsn1

Source§

const TAG: Tag = Tag::BIT_STRING

Source§

const NAME: &'static str = "BitStringAsn1"

Source§

impl Asn1Type for BmpStringAsn1

Source§

const TAG: Tag = Tag::BMP_STRING

Source§

const NAME: &'static str = "BmpStringAsn1"

Source§

impl Asn1Type for GeneralStringAsn1

Source§

const TAG: Tag = Tag::GENERAL_STRING

Source§

const NAME: &'static str = "GeneralStringAsn1"

Source§

impl Asn1Type for GeneralizedTimeAsn1

Source§

const TAG: Tag = Tag::GENERALIZED_TIME

Source§

const NAME: &'static str = "GeneralizedTimeAsn1"

Source§

impl Asn1Type for Ia5StringAsn1

Source§

const TAG: Tag = Tag::IA5_STRING

Source§

const NAME: &'static str = "Ia5StringAsn1"

Source§

impl Asn1Type for IntegerAsn1

Source§

const TAG: Tag = Tag::INTEGER

Source§

const NAME: &'static str = "IntegerAsn1"

Source§

impl Asn1Type for NumericStringAsn1

Source§

const TAG: Tag = Tag::NUMERIC_STRING

Source§

const NAME: &'static str = "NumericStringAsn1"

Source§

impl Asn1Type for ObjectIdentifierAsn1

Source§

const TAG: Tag = Tag::OID

Source§

const NAME: &'static str = "ObjectIdentifierAsn1"

Source§

impl Asn1Type for OctetStringAsn1

Source§

const TAG: Tag = Tag::OCTET_STRING

Source§

const NAME: &'static str = "OctetStringAsn1"

Source§

impl Asn1Type for PrintableStringAsn1

Source§

const TAG: Tag = Tag::PRINTABLE_STRING

Source§

const NAME: &'static str = "PrintableStringAsn1"

Source§

impl Asn1Type for UtcTimeAsn1

Source§

const TAG: Tag = Tag::UTC_TIME

Source§

const NAME: &'static str = "UtcTimeAsn1"

Source§

impl Asn1Type for Utf8StringAsn1

Source§

const TAG: Tag = Tag::UTF8_STRING

Source§

const NAME: &'static str = "Utf8StringAsn1"

Source§

impl<Encapsulated> Asn1Type for BitStringAsn1Container<Encapsulated>

Source§

const TAG: Tag = Tag::BIT_STRING

Source§

const NAME: &'static str = "BitStringAsn1Container"

Source§

impl<Encapsulated> Asn1Type for OctetStringAsn1Container<Encapsulated>

Source§

const TAG: Tag = Tag::OCTET_STRING

Source§

const NAME: &'static str = "OctetStringAsn1Container"

Source§

impl<T> Asn1Type for Asn1SequenceOf<T>

Source§

const TAG: Tag = Tag::SEQUENCE

Source§

const NAME: &'static str = "Asn1SequenceOf"

Source§

impl<T> Asn1Type for Asn1SetOf<T>

Source§

const TAG: Tag = Tag::SET

Source§

const NAME: &'static str = "Asn1SetOf"

Source§

impl<T> Asn1Type for ExplicitContextTag0<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag0"

Source§

impl<T> Asn1Type for ExplicitContextTag1<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag1"

Source§

impl<T> Asn1Type for ExplicitContextTag2<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag2"

Source§

impl<T> Asn1Type for ExplicitContextTag3<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag3"

Source§

impl<T> Asn1Type for ExplicitContextTag4<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag4"

Source§

impl<T> Asn1Type for ExplicitContextTag5<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag5"

Source§

impl<T> Asn1Type for ExplicitContextTag6<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag6"

Source§

impl<T> Asn1Type for ExplicitContextTag7<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag7"

Source§

impl<T> Asn1Type for ExplicitContextTag8<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag8"

Source§

impl<T> Asn1Type for ExplicitContextTag9<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag9"

Source§

impl<T> Asn1Type for ExplicitContextTag10<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag10"

Source§

impl<T> Asn1Type for ExplicitContextTag11<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag11"

Source§

impl<T> Asn1Type for ExplicitContextTag12<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag12"

Source§

impl<T> Asn1Type for ExplicitContextTag13<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag13"

Source§

impl<T> Asn1Type for ExplicitContextTag14<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag14"

Source§

impl<T> Asn1Type for ExplicitContextTag15<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ExplicitContextTag15"

Source§

impl<T> Asn1Type for ImplicitContextTag0<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag0"

Source§

impl<T> Asn1Type for ImplicitContextTag1<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag1"

Source§

impl<T> Asn1Type for ImplicitContextTag2<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag2"

Source§

impl<T> Asn1Type for ImplicitContextTag3<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag3"

Source§

impl<T> Asn1Type for ImplicitContextTag4<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag4"

Source§

impl<T> Asn1Type for ImplicitContextTag5<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag5"

Source§

impl<T> Asn1Type for ImplicitContextTag6<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag6"

Source§

impl<T> Asn1Type for ImplicitContextTag7<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag7"

Source§

impl<T> Asn1Type for ImplicitContextTag8<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag8"

Source§

impl<T> Asn1Type for ImplicitContextTag9<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag9"

Source§

impl<T> Asn1Type for ImplicitContextTag10<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag10"

Source§

impl<T> Asn1Type for ImplicitContextTag11<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag11"

Source§

impl<T> Asn1Type for ImplicitContextTag12<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag12"

Source§

impl<T> Asn1Type for ImplicitContextTag13<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag13"

Source§

impl<T> Asn1Type for ImplicitContextTag14<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag14"

Source§

impl<T> Asn1Type for ImplicitContextTag15<T>

Source§

const TAG: Tag = _

Source§

const NAME: &'static str = "ImplicitContextTag15"

Source§

impl<T: Asn1Type> Asn1Type for HeaderOnly<T>

Source§

const TAG: Tag = T::TAG

Source§

const NAME: &'static str = "HeaderOnly"