#[non_exhaustive]pub enum LoadError {
LibraryNotFound {
searched: Vec<String>,
},
OpenFailed {
path: PathBuf,
source: Error,
},
MissingSymbol(MissingSymbolError),
}Expand description
Failure to locate, open, or validate the PDFium shared library.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LibraryNotFound
No candidate library was found. Contains every location that was tried, in discovery order.
OpenFailed
A concrete library file was found (or explicitly given) but the dynamic loader failed to open it.
MissingSymbol(MissingSymbolError)
The library opened, but a required PDFium symbol is missing — the build is older than the oldest version this crate supports, or the file is not PDFium at all.
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
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 !RefUnwindSafe for LoadError
impl !UnwindSafe for LoadError
impl Freeze for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
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