pub enum PrintAction {
Pause {
reason: String,
actor: Actor,
},
Resume {
reason: String,
actor: Actor,
},
Cancel {
reason: String,
actor: Actor,
},
StartPrint {
file_name: FileName,
manifest: JobManifest,
reason: String,
actor: Actor,
},
SetFeedrateFactor {
factor: f64,
duration_s: Option<i64>,
reason: String,
actor: Actor,
},
SetFlowrateFactor {
factor: f64,
duration_s: Option<i64>,
reason: String,
actor: Actor,
},
SetToolTargetC {
tool: i64,
target_c: f64,
duration_s: Option<i64>,
reason: String,
actor: Actor,
},
SetBedTargetC {
target_c: f64,
duration_s: Option<i64>,
reason: String,
actor: Actor,
},
SetFanPercent {
percent: f64,
duration_s: Option<i64>,
reason: String,
actor: Actor,
},
AcknowledgeFailure {
event_id: EventId,
disposition: AcknowledgementDisposition,
reason: String,
actor: Actor,
},
}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.
Implementations§
Trait Implementations§
Source§impl Clone for PrintAction
impl Clone for PrintAction
Source§fn clone(&self) -> PrintAction
fn clone(&self) -> PrintAction
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 moreSource§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 JsonSchema for PrintAction
impl JsonSchema for PrintAction
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PrintAction
impl PartialEq for PrintAction
Source§impl Sample for PrintAction
impl Sample for PrintAction
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
One value per further arm, for a type whose wire form is a union. Read more
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