pub enum RecoveryActionKind {
RecoverLift,
RecoverCool,
RecoverFan,
RecoverHeat,
RecoverPark,
RecoverHomeXy,
RecoverHomeZ,
}Expand description
One recovery action, named without its fields: what a grant names and what a refusal of an ungranted request names.
Variants§
RecoverLift
Move the nozzle away from the bed.
RecoverCool
Every heater’s target to zero.
RecoverFan
Set the part-cooling fan.
RecoverHeat
Heat one tool.
RecoverPark
Move the head to the configured park place.
RecoverHomeXy
Home X and Y.
RecoverHomeZ
Home Z.
Implementations§
Source§impl RecoveryActionKind
impl RecoveryActionKind
Sourcepub const ALL: [RecoveryActionKind; 7]
pub const ALL: [RecoveryActionKind; 7]
Every recovery action, in the order the vocabulary declares them.
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
The action’s name, as the wire and its operation spell it.
Sourcepub const fn needs_clearance(self) -> bool
pub const fn needs_clearance(self) -> bool
Whether this action moves the head across the bed or heats a nozzle over it, and so needs Z trusted and the nozzle clear of the part.
Trait Implementations§
Source§impl Clone for RecoveryActionKind
impl Clone for RecoveryActionKind
Source§fn clone(&self) -> RecoveryActionKind
fn clone(&self) -> RecoveryActionKind
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 moreimpl Copy for RecoveryActionKind
Source§impl Debug for RecoveryActionKind
impl Debug for RecoveryActionKind
Source§impl<'de> Deserialize<'de> for RecoveryActionKind
impl<'de> Deserialize<'de> for RecoveryActionKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecoveryActionKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecoveryActionKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RecoveryActionKind
impl Display for RecoveryActionKind
impl Eq for RecoveryActionKind
Source§impl Hash for RecoveryActionKind
impl Hash for RecoveryActionKind
Source§impl JsonSchema for RecoveryActionKind
impl JsonSchema for RecoveryActionKind
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 Ord for RecoveryActionKind
impl Ord for RecoveryActionKind
Source§fn cmp(&self, other: &RecoveryActionKind) -> Ordering
fn cmp(&self, other: &RecoveryActionKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RecoveryActionKind
impl PartialEq for RecoveryActionKind
Source§impl PartialOrd for RecoveryActionKind
impl PartialOrd for RecoveryActionKind
Source§impl Sample for RecoveryActionKind
impl Sample for RecoveryActionKind
Source§fn sample_full() -> RecoveryActionKind
fn sample_full() -> RecoveryActionKind
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 RecoveryActionKind
impl Serialize for RecoveryActionKind
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RecoveryActionKind
Auto Trait Implementations§
impl Freeze for RecoveryActionKind
impl RefUnwindSafe for RecoveryActionKind
impl Send for RecoveryActionKind
impl Sync for RecoveryActionKind
impl Unpin for RecoveryActionKind
impl UnsafeUnpin for RecoveryActionKind
impl UnwindSafe for RecoveryActionKind
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
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
Converts
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> ⓘ
Converts
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