[][src]Enum sequoia_openpgp::types::ReasonForRevocation

pub enum ReasonForRevocation {
    Unspecified,
    KeySuperseded,
    KeyCompromised,
    KeyRetired,
    UIDRetired,
    Private(u8),
    Unknown(u8),
}

Describes the reason for a revocation.

See the description of revocation subpackets Section 5.2.3.23 of RFC 4880.

Variants

Unspecified

No reason specified (key revocations or cert revocations)

KeySuperseded

Key is superseded (key revocations)

KeyCompromised

Key material has been compromised (key revocations)

KeyRetired

Key is retired and no longer used (key revocations)

UIDRetired

User ID information is no longer valid (cert revocations)

Private(u8)

Private reason identifier.

Unknown(u8)

Unknown reason identifier.

Methods

impl ReasonForRevocation[src]

pub fn revocation_type(&self) -> RevocationType[src]

Returns the revocation's RevocationType.

Trait Implementations

impl Arbitrary for ReasonForRevocation[src]

impl Clone for ReasonForRevocation[src]

impl Copy for ReasonForRevocation[src]

impl Debug for ReasonForRevocation[src]

impl Display for ReasonForRevocation[src]

impl Eq for ReasonForRevocation[src]

impl From<ReasonForRevocation> for u8[src]

impl From<u8> for ReasonForRevocation[src]

impl Hash for ReasonForRevocation[src]

impl Ord for ReasonForRevocation[src]

impl PartialEq<ReasonForRevocation> for ReasonForRevocation[src]

impl PartialOrd<ReasonForRevocation> for ReasonForRevocation[src]

impl StructuralEq for ReasonForRevocation[src]

impl StructuralPartialEq for ReasonForRevocation[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<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> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,