pub enum PrinterError {
WmiError(String),
CupsError(String),
PrinterNotFound(String),
PlatformNotSupported,
IoError(Error),
Other(String),
}Expand description
Errors that can occur when working with printers
Variants§
WmiError(String)
WMI connection or query failed
CupsError(String)
CUPS connection or query failed
PrinterNotFound(String)
Printer was not found
PlatformNotSupported
Platform not supported
IoError(Error)
General I/O error
Other(String)
Other errors
Trait Implementations§
Source§impl Debug for PrinterError
impl Debug for PrinterError
Source§impl Display for PrinterError
impl Display for PrinterError
Source§impl Error for PrinterError
impl Error for PrinterError
Source§impl From<Error> for PrinterError
impl From<Error> for PrinterError
Auto Trait Implementations§
impl Freeze for PrinterError
impl !RefUnwindSafe for PrinterError
impl Send for PrinterError
impl Sync for PrinterError
impl Unpin for PrinterError
impl !UnwindSafe for PrinterError
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