pub struct ContentCoding(/* private fields */);
Expand description
A content coding, used in the Accept-Encoding
and Content-Encoding
headers.
Implementations§
Source§impl ContentCoding
impl ContentCoding
Sourcepub const BROTLI: ContentCoding
pub const BROTLI: ContentCoding
The Brotli coding, as specified in RFC7932.
Sourcepub const GZIP: ContentCoding
pub const GZIP: ContentCoding
The Gzip coding, as specified in RFC7230.
Sourcepub const DEFLATE: ContentCoding
pub const DEFLATE: ContentCoding
The Deflate coding, as specified in RFC7230.
Sourcepub const COMPRESS: ContentCoding
pub const COMPRESS: ContentCoding
The Compress coding, as specified in RFC7230.
Sourcepub const IDENTITY: ContentCoding
pub const IDENTITY: ContentCoding
The identity coding.
Sourcepub const STAR: ContentCoding
pub const STAR: ContentCoding
A wildcard, used in the Accept-Encoding
header to indicate that all codings are acceptable.
Trait Implementations§
Source§impl Clone for ContentCoding
impl Clone for ContentCoding
Source§fn clone(&self) -> ContentCoding
fn clone(&self) -> ContentCoding
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 ContentCoding
impl Debug for ContentCoding
Source§impl Display for ContentCoding
impl Display for ContentCoding
Source§impl From<ContentCoding> for ContentEncoding
impl From<ContentCoding> for ContentEncoding
Source§fn from(value: ContentCoding) -> ContentEncoding
fn from(value: ContentCoding) -> ContentEncoding
Converts to this type from the input type.
Source§impl FromStr for ContentCoding
impl FromStr for ContentCoding
Source§impl PartialEq for ContentCoding
impl PartialEq for ContentCoding
impl Eq for ContentCoding
impl StructuralPartialEq for ContentCoding
Auto Trait Implementations§
impl Freeze for ContentCoding
impl RefUnwindSafe for ContentCoding
impl Send for ContentCoding
impl Sync for ContentCoding
impl Unpin for ContentCoding
impl UnwindSafe for ContentCoding
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