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> Error for CreatePoolError<C, B>where
C: Error,
B: Error,
impl<C, B> Error for CreatePoolError<C, B>where C: Error, B: Error,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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> RefUnwindSafe for CreatePoolError<C, B>where B: RefUnwindSafe, C: RefUnwindSafe,
impl<C, B> Send for CreatePoolError<C, B>where B: Send, C: Send,
impl<C, B> Sync for CreatePoolError<C, B>where B: Sync, C: Sync,
impl<C, B> Unpin for CreatePoolError<C, B>where B: Unpin, C: Unpin,
impl<C, B> UnwindSafe for CreatePoolError<C, B>where B: UnwindSafe, 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