pub enum Error {
Core(Error),
Io(Error),
TruncatedRead {
offset: u64,
wanted: usize,
got: usize,
},
}Expand description
All errors surfaced by pdfboss-aio.
Every fetch failure carries the offset/range it was fetching, for diagnosability; parse errors wrap the core error unchanged.
Variants§
Core(Error)
A parse-layer error from the sync core machinery.
Io(Error)
A transport-layer I/O error.
TruncatedRead
A read stopped short of the requested range while more bytes were expected (the source is shorter than its declared length).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for Error
The adapter that lets crate::AsyncDocument speak a shared algorithm’s
pdfboss_core::Result: parse-layer errors unwrap back to the original
core variant, and the genuinely transport-level remainder renders into
pdfboss_core::Error::Transport, message intact. Nothing is lost that a
shared algorithm could act on — leniency decisions key off the parse
variants, which survive unwrapped.
impl From<Error> for Error
The adapter that lets crate::AsyncDocument speak a shared algorithm’s
pdfboss_core::Result: parse-layer errors unwrap back to the original
core variant, and the genuinely transport-level remainder renders into
pdfboss_core::Error::Transport, message intact. Nothing is lost that a
shared algorithm could act on — leniency decisions key off the parse
variants, which survive unwrapped.