pub enum WinPdfPrinterError {
DxgiPrintContextError(DxgiPrintContextError),
InvalidPath(Error),
FailedToOpenDocument(Error),
RenderError(Error),
}Expand description
Represents an error from WinPdfPrinter.
Variants§
DxgiPrintContextError(DxgiPrintContextError)
DXGI print context error.
InvalidPath(Error)
Invalid path.
FailedToOpenDocument(Error)
Failed to open the document.
RenderError(Error)
Render error.
Trait Implementations§
Source§impl Debug for WinPdfPrinterError
impl Debug for WinPdfPrinterError
Source§impl Display for WinPdfPrinterError
impl Display for WinPdfPrinterError
Source§impl Error for WinPdfPrinterError
impl Error for WinPdfPrinterError
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()
Source§impl From<DxgiPrintContextError> for WinPdfPrinterError
impl From<DxgiPrintContextError> for WinPdfPrinterError
Source§fn from(source: DxgiPrintContextError) -> Self
fn from(source: DxgiPrintContextError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WinPdfPrinterError
impl !UnwindSafe for WinPdfPrinterError
impl Freeze for WinPdfPrinterError
impl Send for WinPdfPrinterError
impl Sync for WinPdfPrinterError
impl Unpin for WinPdfPrinterError
impl UnsafeUnpin for WinPdfPrinterError
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