pub enum Outcome {
Printed,
PaperEnd,
CoverOpen,
Timeout,
BadDocument(String),
DeviceNotFound,
}Expand description
How a print request turned out.
Variants§
Printed
Printed.
PaperEnd
Not printed: the roll is empty.
CoverOpen
Not printed: the cover is open.
Timeout
Not printed in time: the request’s timeout passed.
BadDocument(String)
The request document could not be understood.
DeviceNotFound
No printer with the requested device ID.
Implementations§
Source§impl Outcome
impl Outcome
Sourcepub fn after_print(status: &PrinterStatus) -> Self
pub fn after_print(status: &PrinterStatus) -> Self
The outcome of a print from the printer’s status afterwards: paper end and an open cover stop a printer, so the print did not happen.
Trait Implementations§
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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