Expand description
The CTB variants.
There are two CTB variants: the old CTB format and the new CTB format.
Note: CTB stands for Cipher Type Byte.
Variants
New(CTBNew)
New (current) packet header format.
Old(CTBOld)
Old PGP 2.6 header format.
Implementations
Trait Implementations
sourceimpl MarshalInto for CTB
impl MarshalInto for CTB
sourcefn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Computes the maximal length of the serialized representation. Read more
sourcefn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
Serializes into the given buffer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CTB
impl Send for CTB
impl Sync for CTB
impl Unpin for CTB
impl UnwindSafe for CTB
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more