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
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§
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