Enum tower_http::classify::ClassifiedResponse
source · [−]pub enum ClassifiedResponse<FailureClass, ClassifyEos> {
Ready(Result<(), FailureClass>),
RequiresEos(ClassifyEos),
}
Expand description
Result of doing a classification.
Variants
Ready(Result<(), FailureClass>)
The response was able to be classified immediately.
RequiresEos(ClassifyEos)
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,
impl<FailureClass, ClassifyEos> Send for ClassifiedResponse<FailureClass, ClassifyEos> where
ClassifyEos: Send,
FailureClass: Send,
impl<FailureClass, ClassifyEos> Sync for ClassifiedResponse<FailureClass, ClassifyEos> where
ClassifyEos: Sync,
FailureClass: Sync,
impl<FailureClass, ClassifyEos> Unpin for ClassifiedResponse<FailureClass, ClassifyEos> where
ClassifyEos: Unpin,
FailureClass: Unpin,
impl<FailureClass, ClassifyEos> UnwindSafe for ClassifiedResponse<FailureClass, ClassifyEos> where
ClassifyEos: UnwindSafe,
FailureClass: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect
only.Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more