Struct eagre_asn1::types::IA5String [] [src]

pub struct IA5String(_);
[]

Asn1 String Type

Currently restricted character sets are not enforced, so it is the callers job to check wether string contents are legal for the specific string type

Trait Implementations

impl From<String> for IA5String
[src]

fn from(s: String) -> IA5String[]

Performs the conversion.

impl DER for IA5String
[src]

fn der_universal_tag() -> UniversalTag[]

Return universal tag of this type

fn der_content() -> ContentType[]

Return content type of this type

fn der_encode_content(&self, w: &mut Write) -> Result<()>[]

Encode the content octets

fn der_decode_content(r: &mut Read, length: usize) -> Result<IA5String>[]

Decode the content octets

fn der_intermediate(&self) -> Result<Intermediate>[]

Create Intermediate from this object

fn der_encode(&self, w: &mut Write) -> Result<()>[]

Fully encode into stream ( tag bytes + length bytes + content bytes )

fn der_bytes(&self) -> Result<Vec<u8>>[]

Return fully encoded bytes (wrapper for der_encode() for easier use)

fn der_from_intermediate(i: Intermediate) -> Result<Self>[]

Create object from Intermediate

fn der_decode(r: &mut Read) -> Result<Self>[]

Create object from stream

fn der_from_bytes(bytes: Vec<u8>) -> Result<Self>[]

Create object from bytes

Derived Implementations

impl Debug for IA5String
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result[]

Formats the value using the given formatter.