[][src]Enum sequoia_openpgp::cert::prelude::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.

Implementations

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> 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, 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>,