[]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>

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.

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

Return the length of the Asn1String (number of bytes)

Trait Implementations

impl Drop for Asn1String

Executes the destructor for this type. Read more

impl Sync for Asn1String
[src]

impl AsRef<Asn1StringRef> for Asn1String

Performs the conversion.

impl Send for Asn1String
[src]

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 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.

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more