pub enum Error {
Any(AnyError),
Container(ContainerError),
FormRejection(FormRejection),
HttpError(Error),
InvalidHeaderName(InvalidHeaderName),
InvalidMethod(InvalidMethod),
InvalidHeaderValue(InvalidHeaderValue),
IO(Error),
SerdeJson(Error),
ToStr(ToStrError),
UnsupportedMediaType,
}Variants§
Any(AnyError)
Container(ContainerError)
FormRejection(FormRejection)
HttpError(Error)
InvalidHeaderName(InvalidHeaderName)
InvalidMethod(InvalidMethod)
InvalidHeaderValue(InvalidHeaderValue)
IO(Error)
SerdeJson(Error)
ToStr(ToStrError)
UnsupportedMediaType
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 ErrorTrait for Error
impl ErrorTrait for Error
Source§impl From<ContainerError> for Error
impl From<ContainerError> for Error
Source§fn from(source: ContainerError) -> Self
fn from(source: ContainerError) -> Self
Converts to this type from the input type.
Source§impl From<FormRejection> for Error
impl From<FormRejection> for Error
Source§fn from(source: FormRejection) -> Self
fn from(source: FormRejection) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderName> for Error
impl From<InvalidHeaderName> for Error
Source§fn from(source: InvalidHeaderName) -> Self
fn from(source: InvalidHeaderName) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<InvalidMethod> for Error
impl From<InvalidMethod> for Error
Source§fn from(source: InvalidMethod) -> Self
fn from(source: InvalidMethod) -> Self
Converts to this type from the input type.
Source§impl From<ToStrError> for Error
impl From<ToStrError> for Error
Source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for Error
impl IntoResponse for Error
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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