Enum cryptographic_message_syntax::asn1::rfc3161::PkiFailureInfo[][src]

pub enum PkiFailureInfo {
    BadAlg,
    BadRequest,
    BadDataFormat,
    TimeNotAvailable,
    UnacceptedPolicy,
    UnacceptedExtension,
    AddInfoNotAvailable,
    SystemFailure,
}

PKI failure info.

PKIFailureInfo ::= BIT STRING {
    badAlg               (0),
      -- unrecognized or unsupported Algorithm Identifier
    badRequest           (2),
      -- transaction not permitted or supported
    badDataFormat        (5),
      -- the data submitted has the wrong format
    timeNotAvailable    (14),
      -- the TSA's time source is not available
    unacceptedPolicy    (15),
      -- the requested TSA policy is not supported by the TSA.
    unacceptedExtension (16),
      -- the requested extension is not supported by the TSA.
    addInfoNotAvailable (17)
      -- the additional information requested could not be understood
      -- or is not available
    systemFailure       (25)
      -- the request cannot be handled due to system failure  }

Variants

BadAlg
BadRequest
BadDataFormat
TimeNotAvailable
UnacceptedPolicy
UnacceptedExtension
AddInfoNotAvailable
SystemFailure

Implementations

impl PkiFailureInfo[src]

pub fn take_opt_from<S: Source>(
    cons: &mut Constructed<'_, S>
) -> Result<Option<Self>, S::Err>
[src]

pub fn take_from<S: Source>(
    cons: &mut Constructed<'_, S>
) -> Result<Self, S::Err>
[src]

pub fn from_primitive<S: Source>(
    prim: &mut Primitive<'_, S>
) -> Result<Self, S::Err>
[src]

pub fn encode(self) -> impl Values[src]

Trait Implementations

impl Clone for PkiFailureInfo[src]

impl Copy for PkiFailureInfo[src]

impl Debug for PkiFailureInfo[src]

impl Eq for PkiFailureInfo[src]

impl PartialEq<PkiFailureInfo> for PkiFailureInfo[src]

impl StructuralEq for PkiFailureInfo[src]

impl StructuralPartialEq for PkiFailureInfo[src]

Auto Trait Implementations

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument 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.