pub enum ProcessorError {
QueueFull,
TaskFailed(String),
InternalError(String),
TaskTimeout,
TaskCancelled,
RetryExhausted(String),
}
Expand description
任务处理器的错误类型
- QueueFull: 任务队列已满
- TaskFailed: 任务执行失败
- InternalError: 内部错误
- TaskTimeout: 任务执行超时
- TaskCancelled: 任务被取消
- RetryExhausted: 重试次数耗尽
Variants§
QueueFull
TaskFailed(String)
InternalError(String)
TaskTimeout
TaskCancelled
RetryExhausted(String)
Trait Implementations§
Source§impl Debug for ProcessorError
impl Debug for ProcessorError
Source§impl Display for ProcessorError
impl Display for ProcessorError
Source§impl Error for ProcessorError
impl Error for ProcessorError
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()
Source§impl From<ProcessorError> for FlowError
impl From<ProcessorError> for FlowError
Source§fn from(error: ProcessorError) -> Self
fn from(error: ProcessorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcessorError
impl RefUnwindSafe for ProcessorError
impl Send for ProcessorError
impl Sync for ProcessorError
impl Unpin for ProcessorError
impl UnwindSafe for ProcessorError
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