pub enum AsyncPoolError {
PoolShutdown,
CircuitOpen,
PoolExhausted,
Timeout,
LockPoisoned,
}Expand description
Pool-specific error conditions.
Variants§
PoolShutdown
Pool is shutting down, no new connections allowed
CircuitOpen
Circuit breaker is open for the requested connection
PoolExhausted
All connections are busy or unhealthy
Timeout
Timed out waiting for a connection
LockPoisoned
Internal lock was poisoned
Trait Implementations§
Source§impl Clone for AsyncPoolError
impl Clone for AsyncPoolError
Source§fn clone(&self) -> AsyncPoolError
fn clone(&self) -> AsyncPoolError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AsyncPoolError
impl Debug for AsyncPoolError
Source§impl Display for AsyncPoolError
impl Display for AsyncPoolError
Source§impl Error for AsyncPoolError
impl Error for AsyncPoolError
1.30.0 · 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<AsyncPoolError> for VoltError
impl From<AsyncPoolError> for VoltError
Source§fn from(e: AsyncPoolError) -> Self
fn from(e: AsyncPoolError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AsyncPoolError
impl PartialEq for AsyncPoolError
impl Eq for AsyncPoolError
impl StructuralPartialEq for AsyncPoolError
Auto Trait Implementations§
impl Freeze for AsyncPoolError
impl RefUnwindSafe for AsyncPoolError
impl Send for AsyncPoolError
impl Sync for AsyncPoolError
impl Unpin for AsyncPoolError
impl UnwindSafe for AsyncPoolError
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