der_parser::der

Type Alias DerClass

Source
pub type DerClass = Class;
👎Deprecated since 7.0.0: Use Class instead
Expand description

DER Object class of tag (same as BerClass)

Aliased Type§

enum DerClass {
    Universal = 0,
    Application = 1,
    ContextSpecific = 2,
    Private = 3,
}

Variants§

§

Universal = 0

Universal class of tags (0b00)

§

Application = 1

Application class of tags (0b01)

§

ContextSpecific = 2

Context-Specific class of tags (0b10)

§

Private = 3

Private class of tags (0b11)

Implementations

Source§

impl Class

Source

pub const UNIVERSAL: u8 = 0u8

Universal class of tags (0b00)

Source

pub const APPLICATION: u8 = 1u8

Application class of tags (0b01)

Source

pub const CONTEXT_SPECIFIC: u8 = 2u8

Context-Specific class of tags (0b10)

Source

pub const PRIVATE: u8 = 3u8

Private class of tags (0b11)

Source

pub const fn assert_eq(&self, class: Class) -> Result<(), Error>

Trait Implementations

Source§

impl Clone for Class

Source§

fn clone(&self) -> Class

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Class

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for Class

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Class

Source§

fn eq(&self, other: &Class) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for Class

Source§

type Error = BerClassFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(value: u8) -> Result<Class, <Class as TryFrom<u8>>::Error>

Performs the conversion.
Source§

impl Copy for Class

Source§

impl Eq for Class

Source§

impl StructuralPartialEq for Class