[][src]Enum sequoia_openpgp::cert::CertValidity

pub enum CertValidity {
    Cert,
    CertPrefix,
    Error(Error),
}

Whether a packet sequence is a valid Cert.

Variants

Cert

The packet sequence is a valid Cert.

CertPrefix

The packet sequence is a valid Cert prefix.

Error(Error)

The packet sequence is definitely not a Cert.

Methods

impl CertValidity[src]

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

Returns whether the packet sequence is a valid Cert.

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

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

Returns whether the packet sequence is a valid Cert prefix.

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

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

Returns whether the packet sequence is definitely not a valid Cert.

Trait Implementations

impl Debug for CertValidity[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>,