Struct asn1_cereal::ber::serial::prim::OctetString [] [src]

pub struct OctetString(_);

A Rust wrapper for OCTET STRING.

To access the internal element, call a.0.

(Use this instead of Vec, since Vec is used for SEQUENCE OF).

Trait Implementations

impl Asn1Info for OctetString
[src]

Get the ASN.1 tag (if defined) for this Rust type. Some types don't have a tag, eg. CHOICE.

Get the ASN.1 type for this Rust type.

impl BerSerialize for OctetString
[src]

Serialise a value into ASN.1 data, without a tag (implicit tagging).

Serialize a value into ASN.1 data as DER.

Serialize a value into ASN.1 data using a specific set of encoding rules.

An empty method that is called first by serialize_enc to allow custom handling, without losing normal serialization behaviour. Read more

impl BerDeserialize for OctetString
[src]

Deserialize an ASN.1 value from a BER stream, after having the tag and length decoded. Read more

Deserialize ASN.1 data into a Rust value, accepting any valid BER.

Deserialize ASN.1 data into a Rust value, using a specific set of encoding rules.

Deserialize ASN.1 data into a Rust value, using a specific set of encoding rules, and also providing the decoded tag and length. Read more

An empty method that is called first by deserialize_with_tag to allow custom handling, without losing normal deserialization behaviour. Read more