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) -> SubmissionError
pub fn worker_spawn_failed(source: Error) -> SubmissionError
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()
Source§impl PartialEq for SubmissionError
impl PartialEq for SubmissionError
Source§fn eq(&self, other: &SubmissionError) -> bool
fn eq(&self, other: &SubmissionError) -> bool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<E> IntoBoxError for E
impl<E> IntoBoxError for E
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more