Enum deadpool::managed::CreatePoolError
source · [−]pub enum CreatePoolError<C, B> {
Config(C),
Build(BuildError<B>),
}
Available on crate feature
managed
only.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
sourceimpl<C: Debug, B: Debug> Debug for CreatePoolError<C, B>
impl<C: Debug, B: Debug> Debug for CreatePoolError<C, B>
sourceimpl<C, B> Display for CreatePoolError<C, B> where
C: Display,
B: Display,
impl<C, B> Display for CreatePoolError<C, B> where
C: Display,
B: Display,
sourceimpl<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 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more