pub enum Command {
Show 20 variants
Cut,
Init,
PrintModeDefault,
Charset(Charset),
CodeTable(CodeTable),
Font(Font),
Underline(UnderlineThickness),
Bold(bool),
DoubleStrike(bool),
WhiteBlackReverse(bool),
Bitmap,
FeedPaper(u8),
FeedLines(u8),
LineSpacing(u8),
DefaultLineSpacing,
CharSpacing(u8),
CharSize(CharMagnification),
SplitWords(bool),
LeftMargin(u16),
Justification(Justification),
}Expand description
Common commands usefull for the printer
Variants§
Cut
Cuts the paper after 0x96 vertical spaces
Init
Equivalent to ESC @
PrintModeDefault
Print mode selected to init the fonts. Equivalent to ESC ! 0
Charset(Charset)
Set an international character set, Equivalent to ESC R
CodeTable(CodeTable)
Selects a different code table, Equivalent to ESC t
Font(Font)
Sets up a font. Equivalent to ESC M
Underline(UnderlineThickness)
Bold(bool)
DoubleStrike(bool)
WhiteBlackReverse(bool)
Bitmap
Equivalent to ESC * m = 0
FeedPaper(u8)
Change line size
FeedLines(u8)
LineSpacing(u8)
DefaultLineSpacing
CharSpacing(u8)
CharSize(CharMagnification)
SplitWords(bool)
LeftMargin(u16)
Justification(Justification)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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