[][src]Enum sequoia_openpgp::parse::stream::VerificationResult

pub enum VerificationResult<'a> {
    GoodChecksum(Signature, &'a TPK, &'a KeyOption<&'a Signature>, RevocationStatus<'a>),
    MissingKey(Signature),
    BadChecksum(Signature),
}

Contains the result of a signature verification.

Variants

GoodChecksum(Signature, &'a TPK, &'a KeyOption<&'a Signature>, RevocationStatus<'a>)

The signature is good.

Note: A signature is considered good if it can be mathematically verified. This doesn't mean that the key that generated the signature is in anyway trustworthy in the sense that it belongs to the person or entity that the user thinks it belongs to. This can only be evaluated within a trust model, such as the web of trust (WoT).

MissingKey(Signature)

Unable to verify the signature because the key is missing.

BadChecksum(Signature)

The signature is bad.

Methods

impl<'a> VerificationResult<'a>[src]

pub fn level(&self) -> usize[src]

Simple forwarder.

Trait Implementations

impl<'a> Debug for VerificationResult<'a>[src]

Auto Trait Implementations

impl<'a> !Send for VerificationResult<'a>

impl<'a> !Sync for VerificationResult<'a>

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.