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