pub enum PoolError {
Timeout(TimeoutType),
Backend(Error),
Closed,
NoRuntimeSpecified,
PostCreateHook(HookError),
StaticMessage(&'static str),
}
Expand description
Possible errors returned by Pool::get()
method.
Variants§
Timeout(TimeoutType)
Timeout happened.
Backend(Error)
Backend reported an error.
Closed
Pool
has been closed.
NoRuntimeSpecified
A Runtime is required
PostCreateHook(HookError)
A post_create
hook reported an error.
StaticMessage(&'static str)
A message
Trait Implementations§
Source§impl Error for PoolError
impl Error for PoolError
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 PoolError
impl !RefUnwindSafe for PoolError
impl Send for PoolError
impl Sync for PoolError
impl Unpin for PoolError
impl !UnwindSafe for PoolError
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