Enum actix_web::http::header::ContentEncoding
source · pub enum ContentEncoding {
Auto,
Br,
Deflate,
Gzip,
Identity,
}
Expand description
Represents supported types of content encodings
Variants
Auto
Automatically select encoding based on encoding negotiation
Br
A format using the Brotli algorithm
Deflate
A format using the zlib structure with deflate algorithm
Gzip
Gzip algorithm
Identity
Indicates the identity function (i.e. no compression, nor modification)
Implementations
Trait Implementations
sourceimpl Clone for ContentEncoding
impl Clone for ContentEncoding
sourcefn clone(&self) -> ContentEncoding
fn clone(&self) -> ContentEncoding
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ContentEncoding
impl Debug for ContentEncoding
sourceimpl<'a> From<&'a str> for ContentEncoding
impl<'a> From<&'a str> for ContentEncoding
sourcefn from(s: &'a str) -> ContentEncoding
fn from(s: &'a str) -> ContentEncoding
Converts to this type from the input type.
sourceimpl PartialEq<ContentEncoding> for ContentEncoding
impl PartialEq<ContentEncoding> for ContentEncoding
sourcefn eq(&self, other: &ContentEncoding) -> bool
fn eq(&self, other: &ContentEncoding) -> bool
impl Copy for ContentEncoding
impl StructuralPartialEq for ContentEncoding
Auto Trait Implementations
impl RefUnwindSafe for ContentEncoding
impl Send for ContentEncoding
impl Sync for ContentEncoding
impl Unpin for ContentEncoding
impl UnwindSafe for ContentEncoding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more