pub enum CompressionMethod {
Stored,
Deflated,
Deflate64,
Bzip2,
Lzma,
Zstd,
Xz,
Unknown(u16),
}Expand description
ZIP compression method, mirroring zip-rs CompressionMethod for the common
methods plus an Unknown(raw) that preserves the offending value.
Variants§
Stored
Method 0 — no compression (raw passthrough / in-place window).
Deflated
Method 8 — classic DEFLATE.
Deflate64
Method 9 — Deflate64 / “enhanced deflate”.
Bzip2
Method 12 — bzip2.
Lzma
Method 14 — LZMA (with the 4-byte ZIP wrapper prefix).
Zstd
Method 93 — Zstandard.
Xz
Method 95 — XZ.
Unknown(u16)
Any other method id — value preserved so callers can report it.
Trait Implementations§
Source§impl Clone for CompressionMethod
impl Clone for CompressionMethod
Source§fn clone(&self) -> CompressionMethod
fn clone(&self) -> CompressionMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompressionMethod
Source§impl Debug for CompressionMethod
impl Debug for CompressionMethod
impl Eq for CompressionMethod
Source§impl PartialEq for CompressionMethod
impl PartialEq for CompressionMethod
Source§fn eq(&self, other: &CompressionMethod) -> bool
fn eq(&self, other: &CompressionMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompressionMethod
Auto Trait Implementations§
impl Freeze for CompressionMethod
impl RefUnwindSafe for CompressionMethod
impl Send for CompressionMethod
impl Sync for CompressionMethod
impl Unpin for CompressionMethod
impl UnsafeUnpin for CompressionMethod
impl UnwindSafe for CompressionMethod
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