pub enum CamError {
Cancelled,
Cutter(CutterError),
Numeric(NumericError),
Transform(TransformError),
NonFinite {
what: String,
},
EmptyTarget {
operation_id: String,
},
UnresolvedTarget {
solid: String,
face: Option<String>,
},
UnsupportedCutter {
strategy: String,
cutter: String,
},
InvalidInput(String),
}Variants§
Cancelled
The caller cancelled; the previous accepted result stands.
Cutter(CutterError)
A cutter’s dimensions were refused.
Numeric(NumericError)
The tolerance object was refused.
Transform(TransformError)
A setup transform was refused.
NonFinite
A coordinate that must be finite was not. what names it.
EmptyTarget
An enabled operation has no target triangles.
UnresolvedTarget
A referenced body or face does not exist in the snapshot.
UnsupportedCutter
A strategy does not support the selected cutter kind.
InvalidInput(String)
Any other invalid input, with a user-facing message.
Trait Implementations§
Source§impl Error for CamError
impl Error for CamError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CutterError> for CamError
impl From<CutterError> for CamError
Source§fn from(e: CutterError) -> Self
fn from(e: CutterError) -> Self
Converts to this type from the input type.
Source§impl From<KinematicsError> for CamError
impl From<KinematicsError> for CamError
Source§fn from(e: KinematicsError) -> Self
fn from(e: KinematicsError) -> Self
Converts to this type from the input type.
Source§impl From<NumericError> for CamError
impl From<NumericError> for CamError
Source§fn from(e: NumericError) -> Self
fn from(e: NumericError) -> Self
Converts to this type from the input type.
Source§impl From<PlanarError> for CamError
impl From<PlanarError> for CamError
Source§fn from(e: PlanarError) -> Self
fn from(e: PlanarError) -> Self
Converts to this type from the input type.
Source§impl From<TransformError> for CamError
impl From<TransformError> for CamError
Source§fn from(e: TransformError) -> Self
fn from(e: TransformError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for CamError
Auto Trait Implementations§
impl Forget for CamError
impl Freeze for CamError
impl Move for CamError
impl RefUnwindSafe for CamError
impl Send for CamError
impl Sync for CamError
impl Unpin for CamError
impl UnsafeUnpin for CamError
impl UnwindSafe for CamError
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