pub enum EngineErrorCode {
BadRequest = 1,
InternalEngine = 2,
}
Expand description
The type of error sent by the KittyCAD graphics engine.
Variants§
BadRequest = 1
User requested something geometrically or graphically impossible. Don’t retry this request, as it’s inherently impossible. Instead, read the error message and change your request.
InternalEngine = 2
Graphics engine failed to complete request, consider retrying
Trait Implementations§
source§impl Clone for EngineErrorCode
impl Clone for EngineErrorCode
source§fn clone(&self) -> EngineErrorCode
fn clone(&self) -> EngineErrorCode
Returns a copy of the value. Read more
1.0.0 · 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 EngineErrorCode
impl Debug for EngineErrorCode
source§impl<'de> Deserialize<'de> for EngineErrorCode
impl<'de> Deserialize<'de> for EngineErrorCode
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 Display for EngineErrorCode
impl Display for EngineErrorCode
source§impl ExternType for EngineErrorCode
impl ExternType for EngineErrorCode
source§impl From<EngineErrorCode> for ErrorCode
impl From<EngineErrorCode> for ErrorCode
Because EngineErrorCode
is a subset of ErrorCode
, you can trivially map
each variant of the former to a variant of the latter.
source§fn from(value: EngineErrorCode) -> Self
fn from(value: EngineErrorCode) -> Self
Converts to this type from the input type.
source§impl From<EngineErrorCode> for StatusCode
impl From<EngineErrorCode> for StatusCode
source§fn from(e: EngineErrorCode) -> Self
fn from(e: EngineErrorCode) -> Self
Converts to this type from the input type.
source§impl FromStr for EngineErrorCode
impl FromStr for EngineErrorCode
source§impl JsonSchema for EngineErrorCode
impl JsonSchema for EngineErrorCode
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl Ord for EngineErrorCode
impl Ord for EngineErrorCode
source§fn cmp(&self, other: &EngineErrorCode) -> Ordering
fn cmp(&self, other: &EngineErrorCode) -> Ordering
1.21.0 · 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
source§impl PartialEq for EngineErrorCode
impl PartialEq for EngineErrorCode
source§fn eq(&self, other: &EngineErrorCode) -> bool
fn eq(&self, other: &EngineErrorCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EngineErrorCode
impl PartialOrd for EngineErrorCode
source§fn partial_cmp(&self, other: &EngineErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &EngineErrorCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for EngineErrorCode
impl Serialize for EngineErrorCode
impl Copy for EngineErrorCode
impl Eq for EngineErrorCode
impl StructuralPartialEq for EngineErrorCode
Auto Trait Implementations§
impl Freeze for EngineErrorCode
impl RefUnwindSafe for EngineErrorCode
impl Send for EngineErrorCode
impl Sync for EngineErrorCode
impl Unpin for EngineErrorCode
impl UnwindSafe for EngineErrorCode
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more