pub enum ControlAction {
Show 16 variants
Pause,
Resume,
Stop,
ClearError,
Light {
node: LedNode,
on: bool,
},
Speed(SpeedLevel),
Gcode(String),
Home(HomeAxes),
Move {
axis: Axis,
delta: f64,
feedrate: u32,
},
Extrude {
delta: f64,
feedrate: u32,
},
SetTemp {
part: TempPart,
celsius: u32,
},
Calibrate {
bed_level: bool,
vibration: bool,
motor_noise: bool,
},
Ams(AmsControl),
AmsChange {
target: u32,
curr_temp: i64,
tar_temp: i64,
},
Reboot,
DisableSteppers,
}Expand description
A control action the API can perform.
Variants§
Pause
Resume
Stop
ClearError
Clear a print error so the printer leaves FAILED without a reboot
(clean_print_error) — re-enables writes the error was blocking.
Light
Speed(SpeedLevel)
Gcode(String)
Home(HomeAxes)
Move
Extrude
SetTemp
Calibrate
Ams(AmsControl)
AmsChange
Change the loaded filament via the AMS (ams_change_filament). target
is a tray (0..3), 254 (external spool), or 255 (unload). Physically
moves filament, so the API gates it behind confirm + idle.
Reboot
DisableSteppers
Trait Implementations§
Source§impl Clone for ControlAction
impl Clone for ControlAction
Source§fn clone(&self) -> ControlAction
fn clone(&self) -> ControlAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ControlAction
impl RefUnwindSafe for ControlAction
impl Send for ControlAction
impl Sync for ControlAction
impl Unpin for ControlAction
impl UnsafeUnpin for ControlAction
impl UnwindSafe for ControlAction
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