pub enum RepositoryError<DB> {
NotFound,
ConnectionError(DB),
ConstraintViolation(String),
Other(String),
}Variants§
Trait Implementations§
Source§impl<DB: Debug> Debug for RepositoryError<DB>
impl<DB: Debug> Debug for RepositoryError<DB>
Source§impl<DB> Display for RepositoryError<DB>where
DB: Display,
impl<DB> Display for RepositoryError<DB>where
DB: Display,
Source§impl<DB> Error for RepositoryError<DB>
impl<DB> Error for RepositoryError<DB>
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()
Auto Trait Implementations§
impl<DB> Freeze for RepositoryError<DB>where
DB: Freeze,
impl<DB> RefUnwindSafe for RepositoryError<DB>where
DB: RefUnwindSafe,
impl<DB> Send for RepositoryError<DB>where
DB: Send,
impl<DB> Sync for RepositoryError<DB>where
DB: Sync,
impl<DB> Unpin for RepositoryError<DB>where
DB: Unpin,
impl<DB> UnwindSafe for RepositoryError<DB>where
DB: UnwindSafe,
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