pub enum PrinterPush {
Reset,
Error {
reason: PrinterErrorReason,
},
Log {
line: String,
},
}Expand description
One thing a printer pushed on its own.
Variants§
Reset
The printer reset: its firmware restarted, and every state it held — the job, the position, the heaters — is gone.
Error
The printer reported an error.
Fields
§
reason: PrinterErrorReasonWhat kind of error the source reported.
Log
One line of the printer’s terminal, as the source shows it.
Trait Implementations§
Source§impl Clone for PrinterPush
impl Clone for PrinterPush
Source§impl Debug for PrinterPush
impl Debug for PrinterPush
impl Eq for PrinterPush
Source§impl PartialEq for PrinterPush
impl PartialEq for PrinterPush
impl StructuralPartialEq for PrinterPush
Auto Trait Implementations§
impl Freeze for PrinterPush
impl RefUnwindSafe for PrinterPush
impl Send for PrinterPush
impl Sync for PrinterPush
impl Unpin for PrinterPush
impl UnsafeUnpin for PrinterPush
impl UnwindSafe for PrinterPush
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