Struct Te
pub struct Te(pub NonEmptySmallVec<2, QualityValue<TeDirective>>);Available on crate features
http and std only.Expand description
TE header, defined in
RFC7230
As RFC7230 states, “The “TE” header field in a request indicates what transfer codings, besides chunked, the client is willing to accept in response, and whether or not the client is willing to accept trailer fields in a chunked transfer coding.“
For HTTP/1.1 compliant clients chunked transfer codings are assumed to be acceptable and
so should never appear in this header.
§ABNF
TE = "TE" ":" #( t-codings )
t-codings = "trailers" | ( transfer-extension [ accept-params ] )§Example values
trailerstrailers, deflate;q=0.5
Tuple Fields§
§0: NonEmptySmallVec<2, QualityValue<TeDirective>>Implementations§
§impl Te
impl Te
pub fn new(value: QualityValue<TeDirective>) -> Te
Trait Implementations§
§impl HeaderDecode for Te
impl HeaderDecode for Te
§fn decode<'i, I>(values: &mut I) -> Result<Te, Error>where
I: Iterator<Item = &'i HeaderValue>,
fn decode<'i, I>(values: &mut I) -> Result<Te, Error>where
I: Iterator<Item = &'i HeaderValue>,
Decode this type from an iterator of
HeaderValues.§impl HeaderEncode for Te
impl HeaderEncode for Te
§fn encode<E>(&self, values: &mut E)where
E: Extend<HeaderValue>,
fn encode<E>(&self, values: &mut E)where
E: Extend<HeaderValue>,
Encode this type to a
HeaderValue, and add it to a container
which has HeaderValue type as each element. Read more§fn encode_to_value(&self) -> Option<HeaderValue>
fn encode_to_value(&self) -> Option<HeaderValue>
Encode this header to
HeaderValue. Read moreimpl StructuralPartialEq for Te
§impl TypedHeader for Te
impl TypedHeader for Te
§fn name() -> &'static HeaderName
fn name() -> &'static HeaderName
The name of this header.
Auto Trait Implementations§
impl Forget for Te
impl Freeze for Tewhere
*const str is !null: Freeze,
PhantomData<str>: Freeze,
*const QualityValue<TeDirective> is !null: Freeze,
PhantomData<QualityValue<TeDirective>>: Freeze,
impl Move for Te
impl RefUnwindSafe for Te
impl Send for Te
impl Sync for Tewhere
BoxRaw<str>: Sync,
SmallVecData<[QualityValue<TeDirective>; 2]>: Sync,
QualityValue<TeDirective>: Sync,
impl Unpin for Tewhere
Box<str>: Unpin,
*const QualityValue<TeDirective> is !null: Unpin,
QualityValue<TeDirective>: Unpin,
impl UnsafeUnpin for Tewhere
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
*const QualityValue<TeDirective> is !null: UnsafeUnpin,
PhantomData<QualityValue<TeDirective>>: UnsafeUnpin,
impl UnwindSafe for Tewhere
BoxRaw<str>: UnwindSafe,
NonNull<QualityValue<TeDirective>>: UnwindSafe,
QualityValue<TeDirective>: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more