pub enum Rejected {
Full,
Overloaded,
Stopped,
}Expand description
Why OffloadPool::try_submit refused a job.
Variants§
Full
max_queue jobs are already waiting.
Overloaded
Jobs have been waiting longer than the CoDel target for a whole interval.
Stopped
The pool is shutting down.
Trait Implementations§
impl Copy for Rejected
impl Eq for Rejected
Source§impl Error for Rejected
impl Error for Rejected
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()
impl StructuralPartialEq for Rejected
Auto Trait Implementations§
impl Forget for Rejected
impl Freeze for Rejected
impl Move for Rejected
impl RefUnwindSafe for Rejected
impl Send for Rejected
impl Sync for Rejected
impl Unpin for Rejected
impl UnsafeUnpin for Rejected
impl UnwindSafe for Rejected
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