pub enum AppError {
Internal(CrateCheckerError),
BadRequest(String),
NotFound(String),
}Expand description
Application error wrapper for HTTP responses
Variants§
Trait Implementations§
Source§impl From<CrateCheckerError> for AppError
impl From<CrateCheckerError> for AppError
Source§fn from(err: CrateCheckerError) -> Self
fn from(err: CrateCheckerError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for AppError
Convert AppError to HTTP response
impl IntoResponse for AppError
Convert AppError to HTTP response
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !RefUnwindSafe for AppError
impl !UnwindSafe for AppError
impl Freeze for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl UnsafeUnpin for AppError
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