pub enum JobPoolError {
InvalidConfig,
Spawn(Error),
}Expand description
Invalid pool settings or a failure to create a worker thread.
Variants§
InvalidConfig
Worker count and outstanding capacity must both be positive.
Spawn(Error)
The operating system rejected thread creation.
Trait Implementations§
Source§impl Debug for JobPoolError
impl Debug for JobPoolError
Source§impl Display for JobPoolError
impl Display for JobPoolError
Source§impl Error for JobPoolError
impl Error for JobPoolError
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 !RefUnwindSafe for JobPoolError
impl !UnwindSafe for JobPoolError
impl Freeze for JobPoolError
impl Send for JobPoolError
impl Sync for JobPoolError
impl Unpin for JobPoolError
impl UnsafeUnpin for JobPoolError
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