[−][src]Enum sequoia_openpgp::message::MessageValidity
Whether a packet sequence is a valid OpenPGP Message.
Variants
The packet sequence is a valid OpenPGP message.
The packet sequence appears to be a valid OpenPGP message that has been truncated, i.e., the packet sequence is a valid prefix of an OpenPGP message.
Error(Error)
The message is definitely not valid.
Implementations
impl MessageValidity
[src]
pub fn is_message(&self) -> bool
[src]
Returns whether the packet sequence is a valid message.
Note: a MessageValidator
will only return this after
MessageValidator::finish
has been called.
pub fn is_message_prefix(&self) -> bool
[src]
Returns whether the packet sequence forms a valid message prefix.
Note: a MessageValidator
will only return this before
MessageValidator::finish
has been called.
pub fn is_err(&self) -> bool
[src]
Returns whether the packet sequence is definitely not a valid OpenPGP Message.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MessageValidity
impl Send for MessageValidity
impl Sync for MessageValidity
impl Unpin for MessageValidity
impl UnwindSafe for MessageValidity
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,