pub enum ErrorAction {
Retry(Error),
Skip,
}Expand description
Defines the action to take when a read error occurs.
定义读取错误发生时的处理动作。
Variants§
Retry(Error)
Propagate the error but retain the current reader.
The next read operation will retry the same reader. This is useful for transient errors where retrying might succeed.
传播错误但保留当前读取器。
下次读取操作将继续尝试同一读取器。适用于可能通过重试解决的临时错误。
Skip
Discard the current reader and proceed to the next one.
The problematic reader is removed from the queue immediately.
丢弃当前读取器并继续下一个。
有问题的读取器将立即从队列中移除。
Auto Trait Implementations§
impl Freeze for ErrorAction
impl !RefUnwindSafe for ErrorAction
impl Send for ErrorAction
impl Sync for ErrorAction
impl Unpin for ErrorAction
impl !UnwindSafe for ErrorAction
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