pub enum PrinterCommand {
ReportPosition,
MoveZ {
mm: f64,
},
MoveXy {
x_mm: f64,
y_mm: f64,
},
Home {
axes: HomeAxes,
},
}Expand description
A command a printer may be sent: a closed vocabulary, each variant rendered by the adapter to its own line.
Every number a variant carries is a distance or a place in millimetres that policy has already ruled on; no variant carries text.
Variants§
ReportPosition
Report where the print head is. The answer arrives on the push channel.
MoveZ
Move the print head along Z by a distance from where it is, in millimetres: positive moves Z up the axis, negative down it.
MoveXy
Move the print head to a place in X and Y, in millimetres, leaving Z where it is.
Home
Home the axes named.
Trait Implementations§
Source§impl Clone for PrinterCommand
impl Clone for PrinterCommand
impl Copy for PrinterCommand
Source§impl Debug for PrinterCommand
impl Debug for PrinterCommand
Source§impl PartialEq for PrinterCommand
impl PartialEq for PrinterCommand
impl StructuralPartialEq for PrinterCommand
Auto Trait Implementations§
impl Forget for PrinterCommand
impl Freeze for PrinterCommand
impl RefUnwindSafe for PrinterCommand
impl Send for PrinterCommand
impl Sync for PrinterCommand
impl Unpin for PrinterCommand
impl UnsafeUnpin for PrinterCommand
impl UnwindSafe for PrinterCommand
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