Enum deadpool::managed::CreatePoolError
source · pub enum CreatePoolError<C, B> {
Config(C),
Build(BuildError<B>),
}
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<B>)
This variant is used for errors while building the pool
Trait Implementations§
source§impl<C, B> Display for CreatePoolError<C, B>
impl<C, B> Display for CreatePoolError<C, B>
source§impl<C, B> Error for CreatePoolError<C, B>
impl<C, B> Error for CreatePoolError<C, B>
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, B> Freeze for CreatePoolError<C, B>
impl<C, B> RefUnwindSafe for CreatePoolError<C, B>where
C: RefUnwindSafe,
B: RefUnwindSafe,
impl<C, B> Send for CreatePoolError<C, B>
impl<C, B> Sync for CreatePoolError<C, B>
impl<C, B> Unpin for CreatePoolError<C, B>
impl<C, B> UnwindSafe for CreatePoolError<C, B>where
C: UnwindSafe,
B: 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