pub enum PrintAction {
Pause {
reason: String,
actor: Actor,
},
Resume {
reason: String,
actor: Actor,
},
Cancel {
reason: String,
actor: Actor,
},
StartPrint {
file_name: FileName,
manifest: JobManifest,
override_filament_check: bool,
override_material_check: bool,
override_sheet_check: bool,
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,
},
ClosePrint {
outcome: PrintOutcome,
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.
override_filament_check: boolStart despite an insufficient or unverified spool, or a file
OctoPrint has not analysed; the start’s own reason is the
override’s reason.
override_material_check: boolStart despite a file sliced for another material than the spool loaded on tool 0, or naming none; only an operator’s asking counts, and the start’s own reason is the override’s reason.
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.
Fields
disposition: AcknowledgementDispositionWhat to do next.
ClosePrint
Close a print record printobserver left open, with the outcome the operator judges it ended with. It asks nothing of the machine and charges no spool: the record’s consumption was never seen to end.
Implementations§
Trait Implementations§
Source§impl Clone for PrintAction
impl Clone for PrintAction
Source§fn clone(&self) -> PrintAction
fn clone(&self) -> PrintAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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<PrintAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrintAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for PrintAction
impl JsonSchema for PrintAction
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$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() -> PrintAction
fn sample_full() -> PrintAction
Source§fn sample_minimal() -> PrintAction
fn sample_minimal() -> PrintAction
Source§fn sample_alternates() -> Vec<PrintAction>
fn sample_alternates() -> Vec<PrintAction>
Source§impl Serialize for PrintAction
impl Serialize for PrintAction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for PrintAction
Auto Trait Implementations§
impl Forget for PrintAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more