pub enum HandleError {
NonUtf8Path(PathBuf),
Join(JoinError),
PoolBuilder(BuildError),
Writer(ManagerError),
Reader(PoolError<ManagerError>),
Query(Error),
Migrations(Box<dyn Error + Send + Sync>),
UpdateRows {
modified: usize,
exp: usize,
},
Application(Box<dyn Error + Send + Sync>),
}Expand description
Handler error
Variants§
NonUtf8Path(PathBuf)
couldn’t open database with non UTF-8 path: {0}
Join(JoinError)
couldn’t join database task
PoolBuilder(BuildError)
error returned while building the reader pool
Writer(ManagerError)
error returned while creating the writer connection
Reader(PoolError<ManagerError>)
error returned while getting a reader connection
Query(Error)
couldn’t execute the query
Migrations(Box<dyn Error + Send + Sync>)
couldn’t run pending migrations
UpdateRows
wrong number of rows updated, expected {exp} but modified {modified}
Application(Box<dyn Error + Send + Sync>)
error returned by the application
Implementations§
Source§impl HandleError
impl HandleError
Source§impl HandleError
impl HandleError
Trait Implementations§
Source§impl Debug for HandleError
impl Debug for HandleError
Source§impl Display for HandleError
impl Display for HandleError
Source§impl Error for HandleError
impl Error for HandleError
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<BuildError> for HandleError
impl From<BuildError> for HandleError
Source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for HandleError
impl From<Error> for HandleError
Source§impl From<JoinError> for HandleError
impl From<JoinError> for HandleError
Source§impl From<ManagerError> for HandleError
impl From<ManagerError> for HandleError
Source§fn from(source: ManagerError) -> Self
fn from(source: ManagerError) -> Self
Converts to this type from the input type.
Source§impl From<PoolError<ManagerError>> for HandleError
impl From<PoolError<ManagerError>> for HandleError
Source§fn from(source: PoolError<ManagerError>) -> Self
fn from(source: PoolError<ManagerError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HandleError
impl !RefUnwindSafe for HandleError
impl Send for HandleError
impl Sync for HandleError
impl Unpin for HandleError
impl UnsafeUnpin for HandleError
impl !UnwindSafe for HandleError
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::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more