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
sourceimpl<T> ClassifyEos for NeverClassifyEos<T>
impl<T> ClassifyEos for NeverClassifyEos<T>
type FailureClass = T
type FailureClass = T
The type of failure classifications.
sourcefn 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.
sourcefn classify_error<E>(self, _error: &E) -> Self::FailureClass where
E: Display + 'static,
fn classify_error<E>(self, _error: &E) -> Self::FailureClass where
E: Display + 'static,
Classify an error. Read more
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> PolicyExt for T where
T: ?Sized,
impl<T> PolicyExt for T where
T: ?Sized,
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more