pub struct DiagnosticRecord { /* private fields */ }
Expand description
ODBC Diagnostic Record
The description
method of the std::error::Error
trait only returns the message. Use
std::fmt::Display
to retrieve status code and other information.
Implementations§
Source§impl DiagnosticRecord
impl DiagnosticRecord
Sourcepub fn get_raw_state(&self) -> &[u8] ⓘ
pub fn get_raw_state(&self) -> &[u8] ⓘ
get raw state string data.
Sourcepub fn get_raw_message(&self) -> &[u8] ⓘ
pub fn get_raw_message(&self) -> &[u8] ⓘ
get raw diagnostics message for avoiding encoding error.
Sourcepub fn get_native_error(&self) -> i32
pub fn get_native_error(&self) -> i32
get native odbc error number
Sourcepub fn empty() -> DiagnosticRecord
pub fn empty() -> DiagnosticRecord
constructs an empty diagnostics message. this is needed for errors where the driver doesn’t return any diagnostics info.
Trait Implementations§
Source§impl Debug for DiagnosticRecord
impl Debug for DiagnosticRecord
Source§impl Display for DiagnosticRecord
impl Display for DiagnosticRecord
Source§impl Error for DiagnosticRecord
impl Error for DiagnosticRecord
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<DiagnosticRecord> for ODBCError
impl From<DiagnosticRecord> for ODBCError
Source§fn from(err: DiagnosticRecord) -> Self
fn from(err: DiagnosticRecord) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DiagnosticRecord
impl RefUnwindSafe for DiagnosticRecord
impl Send for DiagnosticRecord
impl Sync for DiagnosticRecord
impl Unpin for DiagnosticRecord
impl UnwindSafe for DiagnosticRecord
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