pub enum CadLibError {
Expected {
error_code: String,
error_details: Value,
},
Unexpected {
message: String,
},
}Expand description
An error returned by the cadlib native library, or by the bindings layer.
Variants§
Expected
A known, anticipated CAD error: a machine-readable error_code plus
structured error_details.
Fields
Unexpected
An unexpected internal error from the library, or a bindings-side failure (parameter marshalling, result decoding, or an interior NUL byte).
Trait Implementations§
Source§impl Clone for CadLibError
impl Clone for CadLibError
Source§impl Debug for CadLibError
impl Debug for CadLibError
Source§impl Display for CadLibError
impl Display for CadLibError
Source§impl Error for CadLibError
impl Error for CadLibError
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()
Auto Trait Implementations§
impl Forget for CadLibError
impl Freeze for CadLibError
impl RefUnwindSafe for CadLibError
impl Send for CadLibError
impl Sync for CadLibError
impl Unpin for CadLibError
impl UnsafeUnpin for CadLibError
impl UnwindSafe for CadLibError
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