Enum axum::extract::rejection::ContentLengthLimitRejection [−][src]
#[non_exhaustive] pub enum ContentLengthLimitRejection<T> { PayloadTooLarge(PayloadTooLarge), LengthRequired(LengthRequired), HeadersAlreadyExtracted(HeadersAlreadyExtracted), Inner(T), }
Expand description
Rejection used for ContentLengthLimit
.
Contains one variant for each way the
ContentLengthLimit
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.
Tuple Fields of PayloadTooLarge
Tuple Fields of LengthRequired
Tuple Fields of HeadersAlreadyExtracted
Trait Implementations
Create a response.
Auto Trait Implementations
impl<T> RefUnwindSafe for ContentLengthLimitRejection<T> where
T: RefUnwindSafe,
impl<T> Send for ContentLengthLimitRejection<T> where
T: Send,
impl<T> Sync for ContentLengthLimitRejection<T> where
T: Sync,
impl<T> Unpin for ContentLengthLimitRejection<T> where
T: Unpin,
impl<T> UnwindSafe for ContentLengthLimitRejection<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
type Output = T
type Output = T
Should always be Self