[][src]Struct pgp::armor::Dearmor

pub struct Dearmor<R> {
    pub typ: Option<BlockType>,
    pub headers: BTreeMap<String, String>,
    pub checksum: Option<u64>,
    // some fields omitted
}

Streaming based ascii armor parsing.

Fields

typ: Option<BlockType>

The ascii armor parsed block type.

headers: BTreeMap<String, String>

The headers found in the armored file.

checksum: Option<u64>

Optional crc checksum

Methods

impl<R: Read + Seek> Dearmor<R>[src]

pub fn new(input: R) -> Self[src]

pub fn read_header(&mut self) -> Result<()>[src]

Trait Implementations

impl<R: Read + Seek> Read for Dearmor<R>[src]

Auto Trait Implementations

impl<R> Send for Dearmor<R> where
    R: Send

impl<R> Sync for Dearmor<R> where
    R: Sync

impl<R> Unpin for Dearmor<R> where
    R: Unpin

impl<R> !UnwindSafe for Dearmor<R>

impl<R> !RefUnwindSafe for Dearmor<R>

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<R> ReadBytesExt for R where
    R: Read + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err