pub enum CreatePoolError<C> {
Config(C),
Build(BuildError),
}
Expand description
This error is used when building pools via the config create_pool
methods.
Variants§
Config(C)
This variant is used for configuration errors
Build(BuildError)
This variant is used for errors while building the pool
Trait Implementations§
source§impl<C: Debug> Debug for CreatePoolError<C>
impl<C: Debug> Debug for CreatePoolError<C>
source§impl<C> Display for CreatePoolError<C>where
C: Display,
impl<C> Display for CreatePoolError<C>where
C: Display,
source§impl<C> Error for CreatePoolError<C>where
C: Error,
impl<C> Error for CreatePoolError<C>where
C: Error,
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()
Auto Trait Implementations§
impl<C> Freeze for CreatePoolError<C>where
C: Freeze,
impl<C> RefUnwindSafe for CreatePoolError<C>where
C: RefUnwindSafe,
impl<C> Send for CreatePoolError<C>where
C: Send,
impl<C> Sync for CreatePoolError<C>where
C: Sync,
impl<C> Unpin for CreatePoolError<C>where
C: Unpin,
impl<C> UnwindSafe for CreatePoolError<C>where
C: UnwindSafe,
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