Struct malwaredb_server::http::HttpError
source · pub struct HttpError(pub Error, pub StatusCode);
Expand description
Anyhow wrapper to support Axum error handling
Tuple Fields§
§0: Error
§1: StatusCode
Trait Implementations§
source§impl IntoResponse for HttpError
impl IntoResponse for HttpError
Convert Anyhow error into an Axum response object
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for HttpError
impl RefUnwindSafe for HttpError
impl Send for HttpError
impl Sync for HttpError
impl Unpin for HttpError
impl UnwindSafe for HttpError
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