An OpenPGP packet's header.
The packet's CTB.
The packet's length.
Returns whether the byte stream starts with a plausible OpenPGP header.
This is a heuristic.
This function does not consume any data from
Serializes the packet to a vector.
fn from_reader<R: 'a + Read>(reader: R) -> Result<Self>[src]
Parses an OpenPGP packet's header as described in Section 4.2 of RFC 4880.
Reads from the given file. Read more
Reads from the given slice. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from
source. Read more
type Error = Infallible
The type returned in the event of a conversion error.