A packet's size.
A packet's size can be expressed in three different ways. Either
the size of the packet is fully known (
Full), the packet is
chunked using OpenPGP's partial body encoding (
Partial), or the
packet extends to the end of the file (
Section 4.2 of RFC 4880 for more details.
The packet's size is known.
The parameter is the number of bytes in the current chunk.
This type is only used with new format packets.
The packet extends until an EOF is encountered.
This type is only used with old format packets.
impl Clone for BodyLength[src]
impl Copy for BodyLength[src]
impl Debug for BodyLength[src]
impl Marshal for BodyLength[src]
Emits the length encoded for use with new-style CTBs.
Note: the CTB itself is not emitted.
impl MarshalInto for BodyLength[src]
fn serialized_len(&self) -> usize[src]
fn export_to_vec(&self) -> Result<Vec<u8>>[src]
impl PartialEq<BodyLength> for BodyLength[src]
impl StructuralPartialEq for BodyLength[src]
impl RefUnwindSafe for BodyLength
impl Send for BodyLength
impl Sync for BodyLength
impl Unpin for BodyLength
impl UnwindSafe for BodyLength
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.