pub struct PrintRequest {
pub escpos: Vec<u8>,
pub warnings: Vec<String>,
}Expand description
A print request translated to ESC/POS (FR-31). Feeding PrintRequest::escpos to an
ESC/POS printer gives the same command AST as printing over Web Serial.
Fields§
§escpos: Vec<u8>The equivalent ESC/POS bytes. They start with ESC @: each request starts from the
printer’s power-on settings.
warnings: Vec<String>Parts of the request the emulator does not reproduce (a buzzer, page mode, …), for the event log.
Trait Implementations§
Source§impl Clone for PrintRequest
impl Clone for PrintRequest
Source§impl Debug for PrintRequest
impl Debug for PrintRequest
Source§impl Default for PrintRequest
impl Default for PrintRequest
impl Eq for PrintRequest
Source§impl PartialEq for PrintRequest
impl PartialEq for PrintRequest
impl StructuralPartialEq for PrintRequest
Auto Trait Implementations§
impl Freeze for PrintRequest
impl RefUnwindSafe for PrintRequest
impl Send for PrintRequest
impl Sync for PrintRequest
impl Unpin for PrintRequest
impl UnsafeUnpin for PrintRequest
impl UnwindSafe for PrintRequest
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