pub enum TaskExecutionServiceError {
DuplicateTask(TaskId),
Suspended,
Rejected(SubmissionError),
}Expand description
Error returned when TaskExecutionService
cannot accept a task.
This error is about the service submission path. The accepted task’s own
result is still reported through TaskHandle.
Variants§
DuplicateTask(TaskId)
Another retained task record already uses the same task ID.
Suspended
The service is suspended and temporarily refuses new tasks.
Rejected(SubmissionError)
The underlying thread pool rejected the task.
Trait Implementations§
Source§impl Debug for TaskExecutionServiceError
impl Debug for TaskExecutionServiceError
Source§impl Display for TaskExecutionServiceError
impl Display for TaskExecutionServiceError
Source§impl Error for TaskExecutionServiceError
impl Error for TaskExecutionServiceError
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 From<SubmissionError> for TaskExecutionServiceError
impl From<SubmissionError> for TaskExecutionServiceError
Source§fn from(source: SubmissionError) -> Self
fn from(source: SubmissionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TaskExecutionServiceError
impl !RefUnwindSafe for TaskExecutionServiceError
impl Send for TaskExecutionServiceError
impl Sync for TaskExecutionServiceError
impl Unpin for TaskExecutionServiceError
impl UnsafeUnpin for TaskExecutionServiceError
impl !UnwindSafe for TaskExecutionServiceError
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