[][src]Trait ldap3::asn1::ASNTag

pub trait ASNTag {
    fn into_structure(self) -> StructureTag;
}

Conversion of a tag into a serializable form.

Required methods

fn into_structure(self) -> StructureTag

Encode yourself into a generic Tag format.

The only thing that changes between types is how to encode the wrapped value into bytes; the encoding of the class and id does not change. By first converting the tag into a more generic tag (with already encoded payload), we don't have to reimplement the encoding step for class/id every time.

Loading content...

Implementations on Foreign Types

impl<T> ASNTag for SetOf<T> where
    T: ASNTag
[src]

impl<T> ASNTag for SequenceOf<T> where
    T: ASNTag
[src]

Loading content...

Implementors

impl ASNTag for Tag[src]

impl ASNTag for Boolean[src]

impl ASNTag for Enumerated[src]

impl ASNTag for ExplicitTag[src]

impl ASNTag for Integer[src]

impl ASNTag for Null[src]

impl ASNTag for OctetString[src]

impl ASNTag for Sequence[src]

impl ASNTag for Set[src]

Loading content...