pub struct WorkerFailure {
pub kind: OcrErrorKind,
pub message: String,
pub record: RunRecord,
}Expand description
A failed isolated run: a typed kind, the legacy message text, and what happened.
Display is the legacy message (including any ...-unavailable: prefix), so existing string
comparisons keep working. Key on WorkerFailure::kind.
Fields§
§kind: OcrErrorKind§message: String§record: RunRecordTrait Implementations§
Source§impl Clone for WorkerFailure
impl Clone for WorkerFailure
Source§impl Debug for WorkerFailure
impl Debug for WorkerFailure
Source§impl Display for WorkerFailure
impl Display for WorkerFailure
impl Eq for WorkerFailure
Source§impl Error for WorkerFailure
impl Error for WorkerFailure
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 PartialEq for WorkerFailure
impl PartialEq for WorkerFailure
impl StructuralPartialEq for WorkerFailure
Auto Trait Implementations§
impl Freeze for WorkerFailure
impl RefUnwindSafe for WorkerFailure
impl Send for WorkerFailure
impl Sync for WorkerFailure
impl Unpin for WorkerFailure
impl UnsafeUnpin for WorkerFailure
impl UnwindSafe for WorkerFailure
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