[][src]Enum iso7816_tlv::ber::Class

pub enum Class {
    Universal,
    Application,
    ContextSpecific,
    Private,
}

Class of a BER-TLV Tag field.

Bits 8 and 7 of the first byte of the tag field indicate a class.

  • The value 00 indicates a data object of the universal class.
  • The value 01 indicates a data object of the application class.
  • The value 10 indicates a data object of the context-specific class.
  • The value 11 indicates a data object of the private class.

Variants

Universal

Universal class, not defined in ISO/IEC 7816

Application

Application class, identification defined in [ISO7816-4]

ContextSpecific

Context-specific class, defined in ISO/IEC 7816

Private

Private class, not defined in ISO/IEC 7816

Trait Implementations

impl Clone for Class[src]

impl Debug for Class[src]

impl From<u8> for Class[src]

impl PartialEq<Class> for Class[src]

impl StructuralPartialEq for Class[src]

Auto Trait Implementations

impl RefUnwindSafe for Class

impl Send for Class

impl Sync for Class

impl Unpin for Class

impl UnwindSafe for Class

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.