Enum pgp::types::CompressionAlgorithm
source · #[repr(u8)]pub enum CompressionAlgorithm {
Uncompressed = 0,
ZIP = 1,
ZLIB = 2,
BZip2 = 3,
Private10 = 110,
Other(u8),
}
Expand description
Available compression algorithms. Ref: https://tools.ietf.org/html/rfc4880.html#section-9.3
Variants§
Uncompressed = 0
ZIP = 1
ZLIB = 2
BZip2 = 3
Private10 = 110
Do not use, just for compatability with GnuPG.
Other(u8)
Trait Implementations§
source§impl Clone for CompressionAlgorithm
impl Clone for CompressionAlgorithm
source§fn clone(&self) -> CompressionAlgorithm
fn clone(&self) -> CompressionAlgorithm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompressionAlgorithm
impl Debug for CompressionAlgorithm
source§impl From<CompressionAlgorithm> for u8
impl From<CompressionAlgorithm> for u8
source§fn from(enum_value: CompressionAlgorithm) -> Self
fn from(enum_value: CompressionAlgorithm) -> Self
Converts to this type from the input type.
source§impl From<u8> for CompressionAlgorithm
impl From<u8> for CompressionAlgorithm
source§impl FromPrimitive for CompressionAlgorithm
impl FromPrimitive for CompressionAlgorithm
source§impl PartialEq for CompressionAlgorithm
impl PartialEq for CompressionAlgorithm
source§fn eq(&self, other: &CompressionAlgorithm) -> bool
fn eq(&self, other: &CompressionAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompressionAlgorithm
impl Eq for CompressionAlgorithm
impl StructuralPartialEq for CompressionAlgorithm
Auto Trait Implementations§
impl RefUnwindSafe for CompressionAlgorithm
impl Send for CompressionAlgorithm
impl Sync for CompressionAlgorithm
impl Unpin for CompressionAlgorithm
impl UnwindSafe for CompressionAlgorithm
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