Skip to main content

EncoderMethod

Struct EncoderMethod 

Source
pub struct EncoderMethod(/* private fields */);
Expand description

Encoder method that can be chained (filter, compression and encryption).

Implementations§

Source§

impl EncoderMethod

Source

pub const ID_COPY: &'static [u8]

Method ID for COPY (no compression).

Source

pub const ID_DELTA: &'static [u8]

Method ID for Delta filter.

Source

pub const ID_LZMA: &'static [u8]

Method ID for LZMA compression.

Source

pub const ID_BCJ_X86: &'static [u8]

Method ID for BCJ x86 filter.

Source

pub const ID_BCJ2: &'static [u8]

Method ID for BCJ2 filter.

Source

pub const ID_BCJ_PPC: &'static [u8]

Method ID for BCJ PowerPC filter.

Source

pub const ID_BCJ_IA64: &'static [u8]

Method ID for BCJ IA64 filter.

Source

pub const ID_BCJ_ARM: &'static [u8]

Method ID for BCJ ARM filter.

Source

pub const ID_BCJ_ARM64: &'static [u8]

Method ID for BCJ ARM64 filter.

Source

pub const ID_BCJ_ARM_THUMB: &'static [u8]

Method ID for BCJ ARM Thumb filter.

Source

pub const ID_BCJ_SPARC: &'static [u8]

Method ID for BCJ SPARC filter.

Source

pub const ID_BCJ_RISCV: &'static [u8]

Method ID for BCJ RISCV filter.

Source

pub const ID_PPMD: &'static [u8]

Method ID for PPMD compression.

Source

pub const ID_LZMA2: &'static [u8]

Method ID for LZMA2 compression.

Source

pub const ID_BZIP2: &'static [u8]

Method ID for BZIP2 compression.

Source

pub const ID_ZSTD: &'static [u8]

Method ID for Zstandard compression.

Source

pub const ID_BROTLI: &'static [u8]

Method ID for Brotli compression.

Source

pub const ID_LZ4: &'static [u8]

Method ID for LZ4 compression.

Source

pub const ID_LZS: &'static [u8]

Method ID for LZS compression.

Source

pub const ID_LIZARD: &'static [u8]

Method ID for Lizard compression.

Source

pub const ID_DEFLATE: &'static [u8]

Method ID for Deflate compression.

Source

pub const ID_DEFLATE64: &'static [u8]

Method ID for Deflate64 compression.

Source

pub const ID_AES256_SHA256: &'static [u8]

Method ID for AES256-SHA256 encryption.

Source

pub const COPY: Self

COPY method (no compression).

Source

pub const LZMA: Self

LZMA compression method.

Source

pub const LZMA2: Self

LZMA2 compression method.

Source

pub const PPMD: Self

PPMD compression method.

Source

pub const BZIP2: Self

BZIP2 compression method.

Source

pub const ZSTD: Self

Zstandard compression method.

Source

pub const BROTLI: Self

Brotli compression method.

Source

pub const LZ4: Self

LZ4 compression method.

Source

pub const LZS: Self

LZS compression method.

Source

pub const LIZARD: Self

Lizard compression method.

Source

pub const DEFLATE: Self

Deflate compression method.

Source

pub const DEFLATE64: Self

Deflate64 compression method.

Source

pub const AES256_SHA256: Self

AES256-SHA256 encryption method.

Source

pub const BCJ_X86_FILTER: Self

BCJ x86 filter method.

Source

pub const BCJ_PPC_FILTER: Self

BCJ PowerPC filter method.

Source

pub const BCJ_IA64_FILTER: Self

BCJ IA64 filter method.

Source

pub const BCJ_ARM_FILTER: Self

BCJ ARM filter method.

Source

pub const BCJ_ARM64_FILTER: Self

BCJ ARM64 filter method.

Source

pub const BCJ_ARM_THUMB_FILTER: Self

BCJ ARM Thumb filter method.

Source

pub const BCJ_SPARC_FILTER: Self

BCJ SPARC filter method.

Source

pub const BCJ_RISCV_FILTER: Self

BCJ RISC-V filter method.

Source

pub const DELTA_FILTER: Self

Delta filter method.

Source

pub const BCJ2_FILTER: Self

BCJ2 filter method.

Source

pub const fn name(&self) -> &'static str

Returns the human-readable name of this encoder method.

Source

pub const fn id(&self) -> &'static [u8]

Returns the binary ID of this encoder method.

Source

pub fn by_id(id: &[u8]) -> Option<Self>

Finds an encoder method by its binary ID.

§Arguments
  • id - The binary method ID to search for

Trait Implementations§

Source§

impl Clone for EncoderMethod

Source§

fn clone(&self) -> EncoderMethod

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EncoderMethod

Source§

impl Debug for EncoderMethod

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EncoderMethod

Source§

fn default() -> EncoderMethod

Returns the “default value” for a type. Read more
Source§

impl Eq for EncoderMethod

Source§

impl From<EncoderMethod> for EncoderConfiguration

Available on crate feature compress only.
Source§

fn from(value: EncoderMethod) -> Self

Converts to this type from the input type.
Source§

impl Hash for EncoderMethod

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for EncoderMethod

Source§

fn eq(&self, other: &EncoderMethod) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for EncoderMethod

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.