Struct mailpot_web::ResponseError
source · pub struct ResponseError {
pub inner: Box<dyn Error>,
pub status: StatusCode,
}
Fields§
§inner: Box<dyn Error>
§status: StatusCode
Implementations§
source§impl ResponseError
impl ResponseError
pub fn new(msg: String, status: StatusCode) -> Self
Trait Implementations§
source§impl Debug for ResponseError
impl Debug for ResponseError
source§impl Display for ResponseError
impl Display for ResponseError
source§impl IntoResponse for ResponseError
impl IntoResponse for ResponseError
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !RefUnwindSafe for ResponseError
impl !Send for ResponseError
impl !Sync for ResponseError
impl Unpin for ResponseError
impl !UnwindSafe for ResponseError
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