pub struct GenericServerError { /* private fields */ }
Expand description
Wrapper around an error type that displays a generic error message and server status
Trait Implementations§
Source§impl Debug for GenericServerError
impl Debug for GenericServerError
Source§impl Display for GenericServerError
impl Display for GenericServerError
Source§impl Error for GenericServerError
impl Error for GenericServerError
1.30.0 · 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 HttpError for GenericServerError
impl HttpError for GenericServerError
Source§fn status(&self) -> StatusCode
fn status(&self) -> StatusCode
Handles determining the HTTP status code that should be used
for the HTTP response Read more
Source§fn reason(&self) -> String
fn reason(&self) -> String
Handles creating the error response “reason” text that
is included in the error
Auto Trait Implementations§
impl Freeze for GenericServerError
impl !RefUnwindSafe for GenericServerError
impl Send for GenericServerError
impl Sync for GenericServerError
impl Unpin for GenericServerError
impl !UnwindSafe for GenericServerError
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
Source§impl<E> ErrorExt for E
impl<E> ErrorExt for E
Source§fn into_generic(self) -> GenericServerError
fn into_generic(self) -> GenericServerError
Converts this error into a generic error