pub enum DbkitError {
PoolCreation(String),
Connection(String),
AuthFailed,
TooManyConnections,
DatabaseCreation {
name: String,
reason: String,
},
Postgres(Error),
Pool(String),
RowCount {
expected: String,
actual: usize,
},
Migration(String),
}Variants§
PoolCreation(String)
Connection(String)
AuthFailed
TooManyConnections
DatabaseCreation
Postgres(Error)
Pool(String)
RowCount
Migration(String)
Trait Implementations§
Source§impl Debug for DbkitError
impl Debug for DbkitError
Source§impl Display for DbkitError
impl Display for DbkitError
Source§impl Error for DbkitError
impl Error for DbkitError
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 Freeze for DbkitError
impl !RefUnwindSafe for DbkitError
impl Send for DbkitError
impl Sync for DbkitError
impl Unpin for DbkitError
impl UnsafeUnpin for DbkitError
impl !UnwindSafe for DbkitError
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