Enum tower_http::classify::ClassifiedResponse [−][src]
pub enum ClassifiedResponse<FailureClass, ClassifyEos> { Ready(Result<(), FailureClass>), RequiresEos(ClassifyEos), }
Expand description
Result of doing a classification.
Variants
The response was able to be classified immediately.
We have to wait until the end of a streaming response to classify it.
Trait Implementations
Auto Trait Implementations
impl<FailureClass, ClassifyEos> RefUnwindSafe for ClassifiedResponse<FailureClass, ClassifyEos> where
ClassifyEos: RefUnwindSafe,
FailureClass: RefUnwindSafe,
ClassifyEos: RefUnwindSafe,
FailureClass: RefUnwindSafe,
impl<FailureClass, ClassifyEos> Send for ClassifiedResponse<FailureClass, ClassifyEos> where
ClassifyEos: Send,
FailureClass: Send,
ClassifyEos: Send,
FailureClass: Send,
impl<FailureClass, ClassifyEos> Sync for ClassifiedResponse<FailureClass, ClassifyEos> where
ClassifyEos: Sync,
FailureClass: Sync,
ClassifyEos: Sync,
FailureClass: Sync,
impl<FailureClass, ClassifyEos> Unpin for ClassifiedResponse<FailureClass, ClassifyEos> where
ClassifyEos: Unpin,
FailureClass: Unpin,
ClassifyEos: Unpin,
FailureClass: Unpin,
impl<FailureClass, ClassifyEos> UnwindSafe for ClassifiedResponse<FailureClass, ClassifyEos> where
ClassifyEos: UnwindSafe,
FailureClass: UnwindSafe,
ClassifyEos: UnwindSafe,
FailureClass: UnwindSafe,
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]