pub enum TeDirective {
Compress,
Deflate,
Gzip,
Trailers,
Unknown(Box<str>),
}Expand description
Directive for the Te header.
Variants§
Compress
A format using the Lempel-Ziv-Welch (LZW) algorithm is accepted as a transfer coding name.
Deflate
Using the zlib structure (defined in RFC 1950) is accepted as a transfer coding name.
Gzip
A format using the Lempel-Ziv coding(LZ77), with a 32-bit CRC is accepted as a transfer coding name.
Trailers
Indicates that the client will not discard trailer fields in a chunked transfer coding.
Unknown(Box<str>)
Implementations§
Source§impl TeDirective
impl TeDirective
pub fn as_str(&self) -> &str
pub fn as_static_str(&self) -> Cow<'static, str>
pub fn as_smol_str(&self) -> __SmolStr
Source§impl TeDirective
impl TeDirective
Sourcepub fn strict_parse(s: &str) -> Option<Self>
pub fn strict_parse(s: &str) -> Option<Self>
Same as FromStr or From<&str> but returning
None for unknown values
Trait Implementations§
Source§impl Clone for TeDirective
impl Clone for TeDirective
Source§fn clone(&self) -> TeDirective
fn clone(&self) -> TeDirective
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TeDirective
impl Debug for TeDirective
Source§impl<'de> Deserialize<'de> for TeDirective
impl<'de> Deserialize<'de> for TeDirective
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: __SerdeDeserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: __SerdeDeserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TeDirective
impl Display for TeDirective
impl Eq for TeDirective
Source§impl<'a> From<&'a str> for TeDirective
impl<'a> From<&'a str> for TeDirective
Source§impl From<String> for TeDirective
impl From<String> for TeDirective
Source§impl FromStr for TeDirective
impl FromStr for TeDirective
Source§impl Hash for TeDirective
impl Hash for TeDirective
Source§impl PartialEq for TeDirective
impl PartialEq for TeDirective
Source§fn eq(&self, other: &TeDirective) -> bool
fn eq(&self, other: &TeDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TeDirective
impl Serialize for TeDirective
impl StructuralPartialEq for TeDirective
Auto Trait Implementations§
impl Freeze for TeDirective
impl RefUnwindSafe for TeDirective
impl Send for TeDirective
impl Sync for TeDirective
impl Unpin for TeDirective
impl UnsafeUnpin for TeDirective
impl UnwindSafe for TeDirective
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more