pub enum ErrResp {
ErrAuth(Option<String>),
ErrDb(Option<String>),
ErrIntMsg(Option<String>),
ErrNotFound(Option<String>),
ErrParam(Option<String>),
ErrPerm(Option<String>),
ErrRsc(Option<String>),
ErrUnknown(Option<String>),
Custom(u16, &'static str, Option<String>),
}
Expand description
The standard error definitions.
Variants§
ErrAuth(Option<String>)
ErrDb(Option<String>)
ErrIntMsg(Option<String>)
ErrNotFound(Option<String>)
ErrParam(Option<String>)
ErrPerm(Option<String>)
ErrRsc(Option<String>)
ErrUnknown(Option<String>)
Custom(u16, &'static str, Option<String>)
Trait Implementations§
Source§impl Error for ErrResp
impl Error for ErrResp
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 IntoResponse for ErrResp
impl IntoResponse for ErrResp
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for ErrResp
impl RefUnwindSafe for ErrResp
impl Send for ErrResp
impl Sync for ErrResp
impl Unpin for ErrResp
impl UnwindSafe for ErrResp
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