pub enum OcrError {
BinaryMissing,
WeightsMissing {
model: PathBuf,
mmproj: PathBuf,
auto_download: bool,
},
SpawnFailed(String),
NotReady(String),
RequestFailed(String),
BadResponse(String),
}Expand description
Everything that can go wrong between a tool call and a transcription.
Variants§
BinaryMissing
No llama-server on PATH and none configured.
WeightsMissing
Model and/or projector are absent from disk.
SpawnFailed(String)
The child process could not be started.
NotReady(String)
The child started but never answered /health in time; carries the
tail of its captured stderr.
RequestFailed(String)
The HTTP request itself failed or timed out.
BadResponse(String)
A response arrived but was not usable.
Trait Implementations§
impl Eq for OcrError
impl StructuralPartialEq for OcrError
Auto Trait Implementations§
impl Freeze for OcrError
impl RefUnwindSafe for OcrError
impl Send for OcrError
impl Sync for OcrError
impl Unpin for OcrError
impl UnsafeUnpin 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