pub struct DmError {
pub code: i32,
pub msg: String,
}Expand description
达梦驱动错误。code 为服务器返回码(0 表示非协议错误),msg 为描述信息。
Fields§
§code: i32§msg: StringImplementations§
Trait Implementations§
Source§impl Error for DmError
impl Error for DmError
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 Freeze for DmError
impl RefUnwindSafe for DmError
impl Send for DmError
impl Sync for DmError
impl Unpin for DmError
impl UnsafeUnpin for DmError
impl UnwindSafe for DmError
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