pub enum OcrError {
ProviderNotAvailable(String),
UnsupportedImageFormat(ImageFormat),
InvalidImageData(String),
ProcessingFailed(String),
NetworkError(String),
AuthenticationError(String),
RateLimitExceeded(String),
LowConfidence(String),
Io(Error),
Configuration(String),
}Expand description
Errors that can occur during OCR processing
Variants§
ProviderNotAvailable(String)
OCR provider is not available or not configured
UnsupportedImageFormat(ImageFormat)
Unsupported image format for OCR processing
InvalidImageData(String)
Invalid or corrupted image data
ProcessingFailed(String)
OCR processing failed
NetworkError(String)
Network error when using cloud OCR providers
AuthenticationError(String)
API key or authentication error
RateLimitExceeded(String)
Rate limiting or quota exceeded
LowConfidence(String)
OCR provider returned low confidence results
Io(Error)
Generic IO error
Configuration(String)
Configuration error
Trait Implementations§
Source§impl Error for OcrError
impl Error for OcrError
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 OcrError
impl !RefUnwindSafe for OcrError
impl Send for OcrError
impl Sync for OcrError
impl Unpin for OcrError
impl !UnwindSafe for OcrError
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