#[non_exhaustive]pub enum ExtractBufferedBodyError {
SizeLimitExceeded(SizeLimitExceeded),
UnexpectedBufferError(UnexpectedBufferError),
}
Expand description
The error returned by BufferedBody::extract
when the extraction fails.
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.
SizeLimitExceeded(SizeLimitExceeded)
See SizeLimitExceeded
for details.
UnexpectedBufferError(UnexpectedBufferError)
See UnexpectedBufferError
for details.
Implementations§
source§impl ExtractBufferedBodyError
impl ExtractBufferedBodyError
sourcepub fn into_response(&self) -> Response
pub fn into_response(&self) -> Response
Convert an ExtractBufferedBodyError
into an HTTP response.
Trait Implementations§
source§impl Debug for ExtractBufferedBodyError
impl Debug for ExtractBufferedBodyError
source§impl Display for ExtractBufferedBodyError
impl Display for ExtractBufferedBodyError
source§impl Error for ExtractBufferedBodyError
impl Error for ExtractBufferedBodyError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<SizeLimitExceeded> for ExtractBufferedBodyError
impl From<SizeLimitExceeded> for ExtractBufferedBodyError
source§fn from(source: SizeLimitExceeded) -> Self
fn from(source: SizeLimitExceeded) -> Self
Converts to this type from the input type.
source§impl From<UnexpectedBufferError> for ExtractBufferedBodyError
impl From<UnexpectedBufferError> for ExtractBufferedBodyError
source§fn from(source: UnexpectedBufferError) -> Self
fn from(source: UnexpectedBufferError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExtractBufferedBodyError
impl !RefUnwindSafe for ExtractBufferedBodyError
impl Send for ExtractBufferedBodyError
impl Sync for ExtractBufferedBodyError
impl Unpin for ExtractBufferedBodyError
impl !UnwindSafe for ExtractBufferedBodyError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more