pub enum PdfiumError {
}Expand description
Enumerations of errors that can occur in PDFium and PDFium-rs
Variants§
Unknown
An unknown or unspecified error occurred
FileError
Failed to open, read, or access the PDF file
FormatError
The PDF file format is invalid or corrupted
PasswordError
The PDF requires a password that was not provided or is incorrect
SecurityError
Security restrictions prevent the requested operation
PageError
Error related to page operations (invalid page number, page not found, etc.)
ColorError
Error in color space or color profile processing
IoError(String)
Input/output error with additional details
NullHandle
A handle or pointer is null when it should be valid
UnsupportedImageFormat
The requested image format is not supported for export/conversion
NotFound
The requested resource, object, or element was not found
InvokationFailed(String)
A call to the PDFium library return an error condition
LibraryError(String)
Error loading or initializing the PDFium library
ImageError
An error occurred in the image create
Trait Implementations§
Source§impl Debug for PdfiumError
impl Debug for PdfiumError
Source§impl Display for PdfiumError
impl Display for PdfiumError
Source§impl Error for PdfiumError
impl Error for PdfiumError
1.30.0 · 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
Auto Trait Implementations§
impl Freeze for PdfiumError
impl RefUnwindSafe for PdfiumError
impl Send for PdfiumError
impl Sync for PdfiumError
impl Unpin for PdfiumError
impl UnwindSafe for PdfiumError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more