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

pub struct PacketParserEOF { /* fields omitted */ }

Information about the stream of packets parsed by the PacketParser.


impl PacketParserEOF[src]

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

Whether the message is an OpenPGP Message.

As opposed to a TPK 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> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.