#[non_exhaustive]pub enum PoolErrorVariant {
Exhausted,
Closed,
CreateFailed(String),
ResetFailed(String),
}Expand description
Structured pool error variants, mirroring pg-pool::PoolError.
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.
Trait Implementations§
Source§impl Clone for PoolErrorVariant
impl Clone for PoolErrorVariant
Source§fn clone(&self) -> PoolErrorVariant
fn clone(&self) -> PoolErrorVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PoolErrorVariant
impl Debug for PoolErrorVariant
Source§impl Display for PoolErrorVariant
impl Display for PoolErrorVariant
Source§impl Error for PoolErrorVariant
impl Error for PoolErrorVariant
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 PartialEq for PoolErrorVariant
impl PartialEq for PoolErrorVariant
Source§fn eq(&self, other: &PoolErrorVariant) -> bool
fn eq(&self, other: &PoolErrorVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PoolErrorVariant
impl StructuralPartialEq for PoolErrorVariant
Auto Trait Implementations§
impl Freeze for PoolErrorVariant
impl RefUnwindSafe for PoolErrorVariant
impl Send for PoolErrorVariant
impl Sync for PoolErrorVariant
impl Unpin for PoolErrorVariant
impl UnsafeUnpin for PoolErrorVariant
impl UnwindSafe for PoolErrorVariant
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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