pub struct DaceError {
pub code: u32,
pub message: String,
}Expand description
A DACE error: a numeric XYY code (severity X in {1,3,6,9,10}, number
YY) plus a human-readable message, matching the C library’s error table.
Fields§
§code: u32Numeric XYY error code, identical to the C library’s daceGetError.
message: StringHuman-readable error message.
Implementations§
Trait Implementations§
impl Eq for DaceError
Source§impl Error for DaceError
impl Error for DaceError
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()
impl StructuralPartialEq for DaceError
Auto Trait Implementations§
impl Freeze for DaceError
impl RefUnwindSafe for DaceError
impl Send for DaceError
impl Sync for DaceError
impl Unpin for DaceError
impl UnsafeUnpin for DaceError
impl UnwindSafe for DaceError
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