pub enum ContentEncoding {
IDENTITY,
GZIP,
COMPRESS,
DEFLATE,
BR,
}Variants§
IDENTITY
表示Object未经过压缩或编码
GZIP
表示Object采用Lempel-ZivLZ77压缩算法以及32位CRC校验的编码方式。
COMPRESS
表示Object采用Lempel-Ziv-WelchLZW压缩算法的编码方式。
DEFLATE
表示Object采用zlib结构和deflate压缩算法的编码方式。
BR
表示Object采用Brotli算法的编码方式。
Trait Implementations§
Source§impl Clone for ContentEncoding
impl Clone for ContentEncoding
Source§fn clone(&self) -> ContentEncoding
fn clone(&self) -> ContentEncoding
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 ContentEncoding
impl Debug for ContentEncoding
Source§impl Default for ContentEncoding
impl Default for ContentEncoding
Source§fn default() -> ContentEncoding
fn default() -> ContentEncoding
Returns the “default value” for a type. Read more
Source§impl Display for ContentEncoding
impl Display for ContentEncoding
impl Copy for ContentEncoding
Auto Trait Implementations§
impl Freeze for ContentEncoding
impl RefUnwindSafe for ContentEncoding
impl Send for ContentEncoding
impl Sync for ContentEncoding
impl Unpin for ContentEncoding
impl UnwindSafe for ContentEncoding
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