[][src]Enum sequoia_openpgp::tpk::KeyringValidity

pub enum KeyringValidity {
    Keyring,
    KeyringPrefix,
    Error(Error),
}

Whether a packet sequence is a valid key ring.

Variants

Keyring

The packet sequence is a valid key ring.

KeyringPrefix

The packet sequence is a valid key ring prefix.

Error(Error)

The packet sequence is definitely not a key ring.

Methods

impl KeyringValidity[src]

pub fn is_keyring(&self) -> bool[src]

Returns whether the packet sequence is a valid key ring.

Note: a KeyringValidator will only return this after KeyringValidator::finish has been called.

pub fn is_keyring_prefix(&self) -> bool[src]

Returns whether the packet sequence is a valid Keyring prefix.

Note: a KeyringValidator will only return this before KeyringValidator::finish has been called.

pub fn is_err(&self) -> bool[src]

Returns whether the packet sequence is definitely not a valid key ring.

Trait Implementations

impl Debug for KeyringValidity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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 for T where
    V: MultiLane<T>,