A packet's header.
See Section 4.2 of RFC 4880 for details.
pub fn new(ctb: CTB, length: BodyLength) -> Self[src]
Creates a new header.
Returns the header's CTB.
pub fn length(&self) -> &BodyLength[src]
Returns the header's length.
Checks the header for validity.
A header is consider invalid if:
impl RefUnwindSafe for Header
impl UnwindSafe for Header
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.