Skip to main content

Module start

Module start 

Source
Expand description

Starting a print (the write side, separate from simple control because it carries file/plate/AMS parameters and needs a fresh MQTT connection). Behind a seam so the API is testable: tests/--fake use FakeStarter; live mode uses LiveStarter (project_file/gcode_file + verify).

Safety lives in the HTTP handler (confirm gate, idle check, AMS-map range); this just builds the command and verifies it.

Structs§

FakeStarter
A canned starter for --fake mode and tests.
LiveStarter
Drives a real printer over LAN MQTT.
StartRequest
A resolved print-start request.

Traits§

Starter
Starts prints. Blocking — call from spawn_blocking.