Struct openssl::asn1::Asn1String []

pub struct Asn1String(_);

Primary ASN.1 type used by OpenSSL

Almost all ASN.1 types in OpenSSL are represented by ASN1_STRING structures. This implementation uses ASN1_STRING-to_UTF8 to preserve compatibility with Rust's String.

Methods from Deref<Target = Asn1StringRef>

[src]

Converts the ASN.1 underlying format to UTF8

ASN.1 strings may utilize UTF-16, ASCII, BMP, or UTF8. This is important to consume the string in a meaningful way without knowing the underlying format.

[src]

Return the string as an array of bytes

The bytes do not directly corespond to UTF-8 encoding. To interact with strings in rust, it is preferable to use as_utf8

[src]

Return the length of the Asn1String (number of bytes)

Trait Implementations

impl ForeignType for Asn1String

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

Returns a raw pointer to the wrapped value.

impl Drop for Asn1String

Executes the destructor for this type. Read more

impl Deref for Asn1String

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for Asn1String

Mutably dereferences the value.

impl Borrow<Asn1StringRef> for Asn1String

Immutably borrows from an owned value. Read more

impl AsRef<Asn1StringRef> for Asn1String

Performs the conversion.

impl Send for Asn1String
[src]

impl Sync for Asn1String
[src]