Enum db_sqlx_maria::dev::errors::DBError
[−]pub enum DBError {
DBError(Box<dyn Error + Send + Sync + 'static, Global>),
UsernameTaken,
EmailTaken,
SecretTaken,
CaptchaKeyTaken,
AccountNotFound,
CaptchaNotFound,
TrafficPatternNotFound,
NotificationNotFound,
}
Expand description
Error data structure grouping various error subtypes
Variants
DBError(Box<dyn Error + Send + Sync + 'static, Global>)
errors that are specific to a database implementation
UsernameTaken
Username is taken
EmailTaken
Email is taken
SecretTaken
Secret is taken
CaptchaKeyTaken
Captcha key is taken
AccountNotFound
Account not found
CaptchaNotFound
Captcha not found
TrafficPatternNotFound
Traffic pattern not found
NotificationNotFound
Notification not found
Trait Implementations
impl Error for DBError
impl Error for DBError
fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for DBError
impl Send for DBError
impl Sync for DBError
impl Unpin for DBError
impl !UnwindSafe for DBError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more