pub enum XpsPrinterError {
FailedToCreateEvent(Error),
FailedToCreateObjectFactory(Error),
FailedToStartJob(Error),
FailedToApplyPrintTicket(Error),
FailedToWriteDocument(Error),
StreamNotAvailable,
}Expand description
Represents an error from XpsPrinter.
Variants§
FailedToCreateEvent(Error)
Failed to create event.
FailedToCreateObjectFactory(Error)
Failed to create object factory.
FailedToStartJob(Error)
Failed to start job.
FailedToApplyPrintTicket(Error)
Failed to apply print ticket.
FailedToWriteDocument(Error)
Failed to write document.
StreamNotAvailable
Stream is not available.
Trait Implementations§
Source§impl Debug for XpsPrinterError
impl Debug for XpsPrinterError
Source§impl Display for XpsPrinterError
impl Display for XpsPrinterError
Source§impl Error for XpsPrinterError
impl Error for XpsPrinterError
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 Freeze for XpsPrinterError
impl RefUnwindSafe for XpsPrinterError
impl Send for XpsPrinterError
impl Sync for XpsPrinterError
impl Unpin for XpsPrinterError
impl UnsafeUnpin for XpsPrinterError
impl UnwindSafe for XpsPrinterError
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