Struct tower_http::classify::NeverClassifyEos
source · [−]pub struct NeverClassifyEos<T> { /* private fields */ }
Expand description
A ClassifyEos
type that can be used in ClassifyResponse
implementations that never have
to classify streaming responses.
NeverClassifyEos
exists only as type. NeverClassifyEos
values cannot be constructed.
Trait Implementations
type FailureClass = T
type FailureClass = T
The type of failure classifications.
Perform the classification from response trailers.
Classify an error. Read more
fn map_failure_class<F, NewClass>(self, f: F) -> MapFailureClass<Self, F> where
Self: Sized,
F: FnOnce(Self::FailureClass) -> NewClass,
fn map_failure_class<F, NewClass>(self, f: F) -> MapFailureClass<Self, F> where
Self: Sized,
F: FnOnce(Self::FailureClass) -> NewClass,
Transform the failure classification using a function. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for NeverClassifyEos<T>
impl<T> Send for NeverClassifyEos<T>
impl<T> Sync for NeverClassifyEos<T>
impl<T> Unpin for NeverClassifyEos<T>
impl<T> UnwindSafe for NeverClassifyEos<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect
only.Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more