pub enum CompressionAlgorithm {
None,
Zstd,
Lz4,
}Expand description
Compression algorithms supported by ipfrs-core
Variants§
None
No compression (passthrough)
Zstd
Zstandard compression (high ratio, good speed)
Lz4
LZ4 compression (very fast, moderate ratio)
Implementations§
Source§impl CompressionAlgorithm
impl CompressionAlgorithm
Sourcepub fn is_compressed(&self) -> bool
pub fn is_compressed(&self) -> bool
Check if this algorithm actually compresses data
Sourcepub fn all() -> &'static [CompressionAlgorithm]
pub fn all() -> &'static [CompressionAlgorithm]
Get all available compression algorithms
Trait Implementations§
Source§impl Clone for CompressionAlgorithm
impl Clone for CompressionAlgorithm
Source§fn clone(&self) -> CompressionAlgorithm
fn clone(&self) -> CompressionAlgorithm
Returns a duplicate 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 Default for CompressionAlgorithm
impl Default for CompressionAlgorithm
Source§fn default() -> CompressionAlgorithm
fn default() -> CompressionAlgorithm
Returns the “default value” for a type. Read more
Source§impl Display for CompressionAlgorithm
impl Display for CompressionAlgorithm
Source§impl Hash for CompressionAlgorithm
impl Hash for CompressionAlgorithm
Source§impl PartialEq for CompressionAlgorithm
impl PartialEq for CompressionAlgorithm
impl Copy for CompressionAlgorithm
impl Eq for CompressionAlgorithm
impl StructuralPartialEq for CompressionAlgorithm
Auto Trait Implementations§
impl Freeze for CompressionAlgorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more