#[non_exhaustive]
pub enum RequestPartsAlreadyExtracted {
HeadersAlreadyExtracted(HeadersAlreadyExtracted),
ExtensionsAlreadyExtracted(ExtensionsAlreadyExtracted),
}
Expand description
Rejection used for http::request::Parts
.
Contains one variant for each way the http::request::Parts
extractor can fail.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HeadersAlreadyExtracted(HeadersAlreadyExtracted)
Tuple Fields
ExtensionsAlreadyExtracted(ExtensionsAlreadyExtracted)
Tuple Fields
Trait Implementations
Performs the conversion.
Performs the conversion.
Create a response.
Auto Trait Implementations
impl Send for RequestPartsAlreadyExtracted
impl Sync for RequestPartsAlreadyExtracted
impl Unpin for RequestPartsAlreadyExtracted
impl UnwindSafe for RequestPartsAlreadyExtracted
Blanket Implementations
Mutably borrows from an owned value. Read more
Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
pub fn vzip(self) -> V
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