[][src]Struct sequoia_openpgp::Reader

pub struct Reader<'a>(_);

Transparently strips ASCII Armor.

This reader detects and strips ASCII Armor.

Methods

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

pub fn from_reader<R>(reader: R) -> Result<Self> where
    R: Read + 'a, 
[src]

Creates a Reader from an io::Reader.

pub fn from_file<P>(path: P) -> Result<Self> where
    P: AsRef<Path>, 
[src]

Creates a Reader from a file.

pub fn from_bytes(bytes: &'a [u8]) -> Result<Self>[src]

Creates a Reader from a buffer.

Trait Implementations

impl<'a> Read for Reader<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Reader<'a>

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

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

impl<'a> Unpin for Reader<'a>

impl<'a> !UnwindSafe for Reader<'a>

Blanket Implementations

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

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

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

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

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

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

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.