pub enum SubmitError<F> {
Full(F),
Stopped(F),
IdExhausted(F),
}Expand description
Rejected submission, preserving the closure and its captured inputs for retry.
Variants§
Full(F)
Queued, running, and completed work already fills the configured capacity.
Stopped(F)
The pool has shut down.
IdExhausted(F)
The process exhausted the job ID space; identities cannot safely wrap.
Implementations§
Source§impl<F> SubmitError<F>
impl<F> SubmitError<F>
Sourcepub fn into_inner(self) -> F
pub fn into_inner(self) -> F
Recovers the unexecuted closure, including all captured inputs.
Trait Implementations§
Source§impl<F> Debug for SubmitError<F>
impl<F> Debug for SubmitError<F>
Source§impl<F> Display for SubmitError<F>
impl<F> Display for SubmitError<F>
Source§impl<F> Error for SubmitError<F>
impl<F> Error for SubmitError<F>
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<F> Freeze for SubmitError<F>where
F: Freeze,
impl<F> RefUnwindSafe for SubmitError<F>where
F: RefUnwindSafe,
impl<F> Send for SubmitError<F>where
F: Send,
impl<F> Sync for SubmitError<F>where
F: Sync,
impl<F> Unpin for SubmitError<F>where
F: Unpin,
impl<F> UnsafeUnpin for SubmitError<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for SubmitError<F>where
F: 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