[][src]Struct sequoia_openpgp::parse::PacketParserEOF

pub struct PacketParserEOF { /* fields omitted */ }

Information about the stream of packets parsed by the PacketParser.

Methods

impl PacketParserEOF[src]

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

Whether the message is an OpenPGP Message.

As opposed to a Cert or just a bunch of packets.

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

Whether the message is an OpenPGP keyring.

As opposed to a Message or just a bunch of packets.

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

Whether the message is an OpenPGP Cert.

As opposed to a Message or just a bunch of packets.

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

Returns the path of the last packet.

pub fn last_recursion_depth(&self) -> Option<isize>[src]

The last packet's recursion depth.

A top-level packet has a recursion depth of 0. Packets in a top-level container have a recursion depth of 1, etc.

Trait Implementations

impl Debug for PacketParserEOF[src]

Auto Trait Implementations

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<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<V, T> VZip<V> for T where
    V: MultiLane<T>,