#[non_exhaustive]
pub enum FailedToBufferBody {
LengthLimitError(LengthLimitError),
UnknownBodyError(UnknownBodyError),
}
Expand description
Rejection type for extractors that buffer the request body. Used if the request body cannot be buffered due to an error.
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.
LengthLimitError(LengthLimitError)
UnknownBodyError(UnknownBodyError)
Trait Implementations
sourceimpl Debug for FailedToBufferBody
impl Debug for FailedToBufferBody
sourceimpl Display for FailedToBufferBody
impl Display for FailedToBufferBody
sourceimpl Error for FailedToBufferBody
impl Error for FailedToBufferBody
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<FailedToBufferBody> for BytesRejection
impl From<FailedToBufferBody> for BytesRejection
sourcefn from(inner: FailedToBufferBody) -> Self
fn from(inner: FailedToBufferBody) -> Self
Converts to this type from the input type.
sourceimpl From<FailedToBufferBody> for StringRejection
impl From<FailedToBufferBody> for StringRejection
sourcefn from(inner: FailedToBufferBody) -> Self
fn from(inner: FailedToBufferBody) -> Self
Converts to this type from the input type.
sourceimpl From<LengthLimitError> for FailedToBufferBody
impl From<LengthLimitError> for FailedToBufferBody
sourcefn from(inner: LengthLimitError) -> Self
fn from(inner: LengthLimitError) -> Self
Converts to this type from the input type.
sourceimpl From<UnknownBodyError> for FailedToBufferBody
impl From<UnknownBodyError> for FailedToBufferBody
sourcefn from(inner: UnknownBodyError) -> Self
fn from(inner: UnknownBodyError) -> Self
Converts to this type from the input type.
sourceimpl IntoResponse for FailedToBufferBody
impl IntoResponse for FailedToBufferBody
sourcefn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations
impl !RefUnwindSafe for FailedToBufferBody
impl Send for FailedToBufferBody
impl Sync for FailedToBufferBody
impl Unpin for FailedToBufferBody
impl !UnwindSafe for FailedToBufferBody
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more