Struct sequoia_openpgp::packet::header::Header [−][src]
pub struct Header { /* fields omitted */ }Expand description
A packet’s header.
See Section 4.2 of RFC 4880 for details.
Implementations
Creates a new header.
Returns the header’s length.
Checks the header for validity.
A header is consider invalid if:
- The tag is
Tag::Reserved. - The tag is
Tag::UnknownorTag::Privateandfuture_compatibleis false. - The length encoding is invalid for the packet (e.g.,
partial body encoding may not be used for
PKESKpackets) - The lengths are unreasonable for a packet (e.g., a
PKESKorSKESKlarger than 10 KB).
Trait Implementations
Parses an OpenPGP packet’s header as described in Section 4.2 of RFC 4880.
Auto Trait Implementations
impl RefUnwindSafe for Header
impl UnwindSafe for Header
Blanket Implementations
Mutably borrows from an owned value. Read more