Enum genpdf::error::ErrorKind [−][src]
#[non_exhaustive] pub enum ErrorKind { Internal, InvalidData, InvalidFont, PageSizeExceeded, UnsupportedEncoding, IoError(Error), PdfError(PdfError), PdfIndexError(IndexError), RusttypeError(Error), ImageError(ImageError), }
Expand description
The kind of an Error
.
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.
An internal error.
An error caused by invalid data.
An error caused by an invalid font.
An element exceeds the page size and could not be printed.
A string with unsupported characters was used with a built-in font.
IoError(Error)
An IO error.
PdfError(PdfError)
An error caused by invalid data in printpdf
.
PdfIndexError(IndexError)
An error caused by an invalid index in printpdf
.
RusttypeError(Error)
An error caused by rusttype
.
ImageError(ImageError)
An error caused by image
.
Only available if the images
feature is enabled.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind