Struct tower_http::classify::NeverClassifyEos [−][src]
pub struct NeverClassifyEos<T> { /* fields omitted */ }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
impl<T> ClassifyEos for NeverClassifyEos<T>[src]
impl<T> ClassifyEos for NeverClassifyEos<T>[src]type FailureClass = T
type FailureClass = TThe type of failure classifications.
fn classify_eos(
self,
_trailers: Option<&HeaderMap>
) -> Result<(), Self::FailureClass>[src]
fn classify_eos(
self,
_trailers: Option<&HeaderMap>
) -> Result<(), Self::FailureClass>[src]Perform the classification from response trailers.
fn classify_error<E>(self, _error: &E) -> Self::FailureClass where
E: Display + 'static, [src]
fn classify_error<E>(self, _error: &E) -> Self::FailureClass where
E: Display + 'static, [src]Classify an error. 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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> PolicyExt for T where
T: ?Sized, [src]
impl<T> PolicyExt for T where
T: ?Sized, [src]