#[repr(u8)]pub enum CompressionType {
GZip = 1,
Zlib = 2,
Uncompressed = 3,
LZ4 = 4,
Custom = 127,
}
Expand description
A type of compression used by a chunk
Variants§
GZip = 1
RFC1952 Unused in Practice
Zlib = 2
RFC1950
Uncompressed = 3
LZ4 = 4
Since 24w04a – enabled in server.properties
Custom = 127
Since 24w05a – for third-party servers
Trait Implementations§
Source§impl Clone for CompressionType
impl Clone for CompressionType
Source§fn clone(&self) -> CompressionType
fn clone(&self) -> CompressionType
Returns a copy 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 CompressionType
impl Debug for CompressionType
Source§impl PartialEq for CompressionType
impl PartialEq for CompressionType
impl Copy for CompressionType
impl Eq for CompressionType
impl StructuralPartialEq for CompressionType
Auto Trait Implementations§
impl Freeze for CompressionType
impl RefUnwindSafe for CompressionType
impl Send for CompressionType
impl Sync for CompressionType
impl Unpin for CompressionType
impl UnwindSafe for CompressionType
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