pub enum PdfiumPrinterError {
FailedToOpenPrinter,
FileIOError(Error),
PrintTicketError(ToDevModeError),
StartDocFailed(i32),
StartPageFailed(i32, i32),
EndPageFailed(i32, i32),
EndDocFailed(i32),
PdfiumLoadFailed(u32),
EmfCreateFailed(i32),
EmfPlaybackFailed(i32),
}Expand description
Represents an error from PdfiumPrinter.
Variants§
FailedToOpenPrinter
Failed to open printer.
FileIOError(Error)
File I/O error.
PrintTicketError(ToDevModeError)
Print ticket error.
StartDocFailed(i32)
StartDoc failed.
StartPageFailed(i32, i32)
StartPage failed.
EndPageFailed(i32, i32)
EndPage failed.
EndDocFailed(i32)
EndDoc failed.
PdfiumLoadFailed(u32)
PDFium failed to load the document.
EmfCreateFailed(i32)
EMF creation failed for a page.
EmfPlaybackFailed(i32)
EMF playback failed for a page.
Trait Implementations§
Source§impl Debug for PdfiumPrinterError
impl Debug for PdfiumPrinterError
Source§impl Display for PdfiumPrinterError
impl Display for PdfiumPrinterError
Source§impl Error for PdfiumPrinterError
impl Error for PdfiumPrinterError
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 PdfiumPrinterError
impl !UnwindSafe for PdfiumPrinterError
impl Freeze for PdfiumPrinterError
impl Send for PdfiumPrinterError
impl Sync for PdfiumPrinterError
impl Unpin for PdfiumPrinterError
impl UnsafeUnpin for PdfiumPrinterError
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