(&self)
| 32 | |
| 33 | impl CompressType { |
| 34 | pub fn algorithm(&self) -> Option<CompressionAlgorithm> { |
| 35 | match self { |
| 36 | Self::None => None, |
| 37 | Self::Algorithm(algo) => Some(*algo), |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | pub fn zstd() -> Self { |
| 42 | Self::Algorithm(CompressionAlgorithm::Zstd) |