pub enum TaskError {
Execution(String),
Timeout(Duration),
Cancelled,
DependencyFailed(String),
InvalidInput(String),
CircuitOpen(String),
Other(Error),
}Expand description
Errors that can occur while executing an individual task.
Variants§
Execution(String)
The task body returned a failure.
Timeout(Duration)
The task exceeded its configured time budget.
Cancelled
The task was cancelled before (or during) execution.
DependencyFailed(String)
An upstream dependency failed, so this task could not run.
InvalidInput(String)
The task received invalid input.
CircuitOpen(String)
The circuit breaker for this task is open.
Other(Error)
Any other error, preserving the source chain.
Implementations§
Trait Implementations§
Source§impl Error for TaskError
impl Error for TaskError
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 Freeze for TaskError
impl RefUnwindSafe for TaskError
impl Send for TaskError
impl Sync for TaskError
impl Unpin for TaskError
impl UnsafeUnpin for TaskError
impl UnwindSafe for TaskError
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