Trait Compression

pub trait Compression: CompressionAlgorithm

An algorithm used for compression with associated enums and optional configurations.

Associated Constants

const COMPRESSION_METHOD: CompressionMethod;

The corresponding tag to the algorithm.

Required Methods

fn get_algorithm(&self) -> Compressor

Method to optain a type that can store each variant of comression algorithm.

Implementors