pub struct ThermalPrinter<T>where
    T: Write<u8>,
{ /* private fields */ }
Expand description

ThermalPrinter wraps a serial port to provide a high-level abstraction over the printers serial protocol.

Implementations

Creates a new thermal priner on the given port, with the default settings Once you have successfully connected to the printer you can update these settings using configure

Run the printers internal self test

Set the character justification

Feed a single line

Feed n lines

Set the underline mode

Enable bold printing

Consume the printer, freeing the underlying serial port

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Write error
Writes a single word to the serial interface
Ensures that none of the previously written words are still buffered

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type of error that can occur when writing
Writes a slice, blocking until everything has been written Read more
Block until the serial interface has sent all buffered words