pub enum OpenDatabaseError {
InvalidPath,
CreateDirectory(Error),
Diesel(ConnectionError),
Migration(RunMigrationsError),
}Variants§
Trait Implementations§
Source§impl Debug for OpenDatabaseError
impl Debug for OpenDatabaseError
Source§impl Display for OpenDatabaseError
impl Display for OpenDatabaseError
Source§impl Error for OpenDatabaseError
impl Error for OpenDatabaseError
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<ConnectionError> for OpenDatabaseError
impl From<ConnectionError> for OpenDatabaseError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<RunMigrationsError> for OpenDatabaseError
impl From<RunMigrationsError> for OpenDatabaseError
Source§fn from(source: RunMigrationsError) -> Self
fn from(source: RunMigrationsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenDatabaseError
impl !RefUnwindSafe for OpenDatabaseError
impl Send for OpenDatabaseError
impl Sync for OpenDatabaseError
impl Unpin for OpenDatabaseError
impl !UnwindSafe for OpenDatabaseError
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<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self to an expression for Diesel’s query builder. Read more