pub enum SubmissionError {
Shutdown,
Saturated,
WorkerSpawnFailed {
source: Arc<Error>,
},
}Expand description
Error returned when an executor service refuses to accept a task.
This error is about task acceptance only. It does not describe task execution success or failure; accepted tasks report their final result through the handle returned by the service.
Variants§
Shutdown
The service has been shut down and no longer accepts new tasks.
Saturated
The service is saturated and cannot accept more tasks.
WorkerSpawnFailed
The service accepted the task conceptually but could not create the worker thread required to execute it.
Implementations§
Source§impl SubmissionError
impl SubmissionError
Sourcepub fn worker_spawn_failed(source: Error) -> Self
pub fn worker_spawn_failed(source: Error) -> Self
Trait Implementations§
Source§impl Clone for SubmissionError
impl Clone for SubmissionError
Source§fn clone(&self) -> SubmissionError
fn clone(&self) -> SubmissionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubmissionError
impl Debug for SubmissionError
Source§impl Display for SubmissionError
impl Display for SubmissionError
Source§impl Error for SubmissionError
impl Error for SubmissionError
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 Eq for SubmissionError
Auto Trait Implementations§
impl Freeze for SubmissionError
impl !RefUnwindSafe for SubmissionError
impl Send for SubmissionError
impl Sync for SubmissionError
impl Unpin for SubmissionError
impl UnsafeUnpin for SubmissionError
impl !UnwindSafe for SubmissionError
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