[−][src]Enum sequoia_openpgp::packet::header::PacketLengthType
The PacketLengthType is used as part of the old CTB, and is partially used to determine the packet's size.
See Section 4.2.1 of RFC 4880 for more details.
Variants
A one-octet Body Length header encodes a length of 0 to 191 octets.
A two-octet Body Length header encodes a length of 192 to 8383 octets.
A five-octet Body Length header consists of a single octet holding the value 255, followed by a four-octet scalar.
A Partial Body Length header is one octet long and encodes the length of only part of the data packet.
Trait Implementations
impl Clone for PacketLengthType
[src]
fn clone(&self) -> PacketLengthType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PacketLengthType
[src]
impl Debug for PacketLengthType
[src]
impl From<PacketLengthType> for u8
[src]
fn from(l: PacketLengthType) -> Self
[src]
impl PartialEq<PacketLengthType> for PacketLengthType
[src]
fn eq(&self, other: &PacketLengthType) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for PacketLengthType
[src]
impl TryFrom<u8> for PacketLengthType
[src]
Auto Trait Implementations
impl RefUnwindSafe for PacketLengthType
impl Send for PacketLengthType
impl Sync for PacketLengthType
impl Unpin for PacketLengthType
impl UnwindSafe for PacketLengthType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,