#[repr(u8)]pub enum Version {
Old = 0,
New = 1,
}
Expand description
The version of the packet format.
There are two packet formats (see https://www.rfc-editor.org/rfc/rfc9580.html#name-packet-headers):
-
the (current) OpenPGP packet format specified by this document and its predecessors RFC 4880 and RFC 2440 and
-
the Legacy packet format as used by implementations predating any IETF specification of OpenPGP.
Variants§
Old = 0
Old Packet Format (“Legacy packet format”)
New = 1
New Packet Format (“OpenPGP packet format”)
Implementations§
Trait Implementations§
Source§impl TryFromPrimitive for Version
impl TryFromPrimitive for Version
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more