pub enum PrintAction {
Pause {
actor: Actor,
reason: String,
},
Resume {
actor: Actor,
reason: String,
},
Cancel {
actor: Actor,
reason: String,
},
StartPrint {
actor: Actor,
file_name: FileName,
manifest: JobManifest,
override_filament_check: Option<bool>,
reason: String,
},
SetFeedrateFactor {
actor: Actor,
duration_s: Option<i64>,
factor: f64,
reason: String,
},
SetFlowrateFactor {
actor: Actor,
duration_s: Option<i64>,
factor: f64,
reason: String,
},
SetToolTargetC {
actor: Actor,
duration_s: Option<i64>,
reason: String,
target_c: f64,
tool: i64,
},
SetBedTargetC {
actor: Actor,
duration_s: Option<i64>,
reason: String,
target_c: f64,
},
SetFanPercent {
actor: Actor,
duration_s: Option<i64>,
percent: f64,
reason: String,
},
AcknowledgeFailure {
actor: Actor,
disposition: AcknowledgementDisposition,
event_id: EventId,
reason: String,
},
}Expand description
The whole vocabulary an actor may ask for, and there is no other.
Variants§
Pause
Pause the print.
Resume
Resume the print.
Cancel
Cancel the print.
StartPrint
Start a print of a named file, with a manifest.
Fields
§
manifest: JobManifestThe manifest this print is bounded by.
SetFeedrateFactor
Set the feedrate factor, where one means one hundred percent.
Fields
SetFlowrateFactor
Set the flowrate factor, where one means one hundred percent.
Fields
SetToolTargetC
Set one tool’s target temperature.
Fields
SetBedTargetC
Set the bed’s target temperature.
Fields
SetFanPercent
Set the part-cooling fan percentage.
Fields
AcknowledgeFailure
Acknowledge a failure event, with a disposition.
Trait Implementations§
Source§impl Clone for PrintAction
impl Clone for PrintAction
Source§impl Debug for PrintAction
impl Debug for PrintAction
Source§impl<'de> Deserialize<'de> for PrintAction
impl<'de> Deserialize<'de> for PrintAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PrintAction
impl PartialEq for PrintAction
Source§impl Serialize for PrintAction
impl Serialize for PrintAction
impl StructuralPartialEq for PrintAction
Auto Trait Implementations§
impl Freeze for PrintAction
impl RefUnwindSafe for PrintAction
impl Send for PrintAction
impl Sync for PrintAction
impl Unpin for PrintAction
impl UnsafeUnpin for PrintAction
impl UnwindSafe for PrintAction
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