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§
source§impl<T> ClassifyEos for NeverClassifyEos<T>
impl<T> ClassifyEos for NeverClassifyEos<T>
§type FailureClass = T
type FailureClass = T
The type of failure classifications.
source§fn classify_eos(
self,
_trailers: Option<&HeaderMap>
) -> Result<(), Self::FailureClass>
fn classify_eos(
self,
_trailers: Option<&HeaderMap>
) -> Result<(), Self::FailureClass>
Perform the classification from response trailers.
source§fn classify_error<E>(self, _error: &E) -> Self::FailureClasswhere
E: Display + 'static,
fn classify_error<E>(self, _error: &E) -> Self::FailureClasswhere
E: Display + 'static,
Classify an error. Read more
source§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