#[non_exhaustive]pub enum ExtractBodyError {
Generic(GenericRejectionError),
String(Utf8Error),
Json(Error),
Form(Error),
}Available on crate feature
server only.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.
Generic(GenericRejectionError)
Generic extracting errors when pulling Body or checking
Content-Type of request
String(Utf8Error)
Json(Error)
Available on crate feature
json only.The Body cannot be extracted as a json object
Form(Error)
Available on crate feature
form only.The Body cannot be extracted as a form object
Trait Implementations§
Source§impl Debug for ExtractBodyError
impl Debug for ExtractBodyError
Source§impl Display for ExtractBodyError
impl Display for ExtractBodyError
Source§impl Error for ExtractBodyError
impl Error for ExtractBodyError
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 IntoResponse for ExtractBodyError
impl IntoResponse for ExtractBodyError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Consume self and convert it into a
ResponseAuto Trait Implementations§
impl Freeze for ExtractBodyError
impl !RefUnwindSafe for ExtractBodyError
impl Send for ExtractBodyError
impl Sync for ExtractBodyError
impl Unpin for ExtractBodyError
impl UnsafeUnpin for ExtractBodyError
impl !UnwindSafe for ExtractBodyError
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