pub enum ResearchError {
Database(Error),
Io(Error),
Serialization(Error),
Config(String),
NotFound(String),
Duplicate(String),
Validation(String),
Source(String),
}Variants§
Database(Error)
Io(Error)
Serialization(Error)
Config(String)
NotFound(String)
Duplicate(String)
Validation(String)
Source(String)
Trait Implementations§
Source§impl Debug for ResearchError
impl Debug for ResearchError
Source§impl Display for ResearchError
impl Display for ResearchError
Source§impl Error for ResearchError
impl Error for ResearchError
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 From<Error> for ResearchError
impl From<Error> for ResearchError
Source§impl From<Error> for ResearchError
impl From<Error> for ResearchError
Auto Trait Implementations§
impl !RefUnwindSafe for ResearchError
impl !UnwindSafe for ResearchError
impl Freeze for ResearchError
impl Send for ResearchError
impl Sync for ResearchError
impl Unpin for ResearchError
impl UnsafeUnpin for ResearchError
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