Trait ldap3::asn1::ASNTag
[−]
[src]
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.
Implementors
impl ASNTag for Enumerated
impl ASNTag for Tag
impl ASNTag for ExplicitTag
impl<T> ASNTag for SequenceOf<T> where
T: ASNTag,impl ASNTag for Set
impl ASNTag for OctetString
impl ASNTag for Sequence
impl ASNTag for Boolean
impl ASNTag for Integer
impl ASNTag for Null
impl<T> ASNTag for SetOf<T> where
T: ASNTag,