Enum sequoia_openpgp::parse::Dearmor[][src]

pub enum Dearmor {
    Enabled(ReaderMode),
    Disabled,
    Auto(ReaderMode),
}

Controls transparent stripping of ASCII armor when parsing.

When parsing OpenPGP data streams, the PacketParser will by default automatically detect and remove any ASCII armor encoding (see Section 6 of RFC 4880). This automatism can be disabled and fine-tuned using PacketParserBuilder::dearmor.

Variants

Enabled(ReaderMode)

Unconditionally treat the input as if it were an OpenPGP message encoded using ASCII armor.

Parsing a binary encoded OpenPGP message using this mode will fail. The ReaderMode allow further customization of the ASCII armor parser.

Disabled

Unconditionally treat the input as if it were a binary OpenPGP message.

Parsing an ASCII armor encoded OpenPGP message using this mode will fail.

If input does not appear to be a binary encoded OpenPGP message, treat it as if it were encoded using ASCII armor.

This is the default. The ReaderMode allow further customization of the ASCII armor parser.

Trait Implementations

impl Default for Dearmor[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl PartialEq<Dearmor> for Dearmor[src]

fn eq(&self, other: &Dearmor) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Dearmor) -> bool[src]

This method tests for !=.

impl StructuralPartialEq for Dearmor[src]

Auto Trait Implementations

impl RefUnwindSafe for Dearmor

impl Send for Dearmor

impl Sync for Dearmor

impl Unpin for Dearmor

impl UnwindSafe for Dearmor

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.