Enum pdfium_render::error::PdfiumError
source · [−]pub enum PdfiumError {
Show 18 variants
LoadLibraryError(Error),
PageIndexOutOfBounds,
UnknownBitmapFormat,
UnknownBitmapRotation,
UnknownFormType,
UnknownFormFieldType,
UnknownActionType,
PageObjectIndexOutOfBounds,
PageAnnotationIndexOutOfBounds,
PageFlattenFailure,
UnknownPdfPageObjectType,
UnknownPdfPageTextRenderMode,
UnknownPdfAnnotationType,
UnknownPdfSecurityHandlerRevision,
PdfiumFunctionReturnValueIndicatedFailure,
UnableToConvertPdfiumColorValueToRustu8(TryFromIntError),
IoError(Error),
PdfiumLibraryInternalError(PdfiumInternalError),
}Variants
LoadLibraryError(Error)
The external Pdfium library could not be loaded.
PageIndexOutOfBounds
UnknownBitmapFormat
UnknownBitmapRotation
UnknownFormType
UnknownFormFieldType
UnknownActionType
PageObjectIndexOutOfBounds
PageAnnotationIndexOutOfBounds
PageFlattenFailure
UnknownPdfPageObjectType
UnknownPdfPageTextRenderMode
UnknownPdfAnnotationType
UnknownPdfSecurityHandlerRevision
PdfiumFunctionReturnValueIndicatedFailure
A call to a internal Pdfium FPDF_* function returned a value indicating failure.
For Pdfium functions that return enumerations, this means the function returned a value of -1 rather than a valid enumeration constant.
For Pdfium functions that return C-style boolean integers, this means that the function
returned a value other than PdfiumLibraryBindings::TRUE.
UnableToConvertPdfiumColorValueToRustu8(TryFromIntError)
A call to a Pdfium function that returns a standard 8-bit color component value
(for example, FPDFPageObj_GetStrokeColor() and FPDFPageObj_GetStrokeColor())
successfully returned a value, but the value could not be converted from a c_int
to a standard Rust u8.
IoError(Error)
An I/O error occurred during a Pdfium file operation.
PdfiumLibraryInternalError(PdfiumInternalError)
A wrapped internal library error from Pdfium’s FPDF_ERR_* constant values.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PdfiumError
impl Send for PdfiumError
impl Sync for PdfiumError
impl Unpin for PdfiumError
impl !UnwindSafe for PdfiumError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more