Struct odbc::DiagnosticRecord
source · 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 retrive status code and other information.
Implementations
sourceimpl DiagnosticRecord
impl DiagnosticRecord
sourcepub fn get_raw_state(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
pub fn get_raw_state(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
get raw state string data.
sourcepub fn get_raw_message(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
pub fn get_raw_message(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[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
sourceimpl Debug for DiagnosticRecord
impl Debug for DiagnosticRecord
sourceimpl Display for DiagnosticRecord
impl Display for DiagnosticRecord
sourceimpl Error for DiagnosticRecord
impl Error for DiagnosticRecord
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations
impl RefUnwindSafe for DiagnosticRecord
impl Send for DiagnosticRecord
impl Sync for DiagnosticRecord
impl Unpin for DiagnosticRecord
impl UnwindSafe for DiagnosticRecord
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more