#[non_exhaustive]pub enum ManagerError {
Connection {
db_file: String,
backtrace: ConnectionError,
},
Join(JoinError),
Query(Error),
}Expand description
Error returned while creating a connection
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connection
couldn’t connect to the database {db_file}
Fields
§
backtrace: ConnectionErrorUnderling connection error
Join(JoinError)
couldn’t join database task
Query(Error)
couldn’t execute the query
Trait Implementations§
Source§impl Debug for ManagerError
impl Debug for ManagerError
Source§impl Display for ManagerError
impl Display for ManagerError
Source§impl Error for ManagerError
impl Error for ManagerError
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 ManagerError
impl From<Error> for ManagerError
Source§impl From<JoinError> for ManagerError
impl From<JoinError> for ManagerError
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.
Auto Trait Implementations§
impl Freeze for ManagerError
impl !RefUnwindSafe for ManagerError
impl Send for ManagerError
impl Sync for ManagerError
impl Unpin for ManagerError
impl UnsafeUnpin for ManagerError
impl !UnwindSafe for ManagerError
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