pub enum Compression {
Gzip,
}Expand description
Specifies the compression algorithm to use for rotated log files.
Currently supports Gzip compression, with planned support for additional
compression algorithms in future releases. When a log file is rotated,
it will be compressed using the specified algorithm and given an appropriate
file extension (e.g., .gz for Gzip).
Future compression options may include:
- Bzip2 - Higher compression ratio but slower than Gzip
- LZ4 - Fast compression with good compression ratio
- Zstd - Modern algorithm balancing speed and compression
- Snappy - Very fast compression, developed by Google
Variants§
Gzip
Gzip compression, which provides a good balance of compression ratio
and speed. Compressed files will have the .gz extension.
Trait Implementations§
Source§impl Clone for Compression
impl Clone for Compression
Source§fn clone(&self) -> Compression
fn clone(&self) -> Compression
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 moreAuto Trait Implementations§
impl Freeze for Compression
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnwindSafe for Compression
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