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.
Fields
state: State
All elements but the last one, may not be null. The last one must be null.
native_error: i32
Error code returned by Driver manager or driver
message: Vec<SqlChar>
Buffer containing the error message. The buffer already has the correct size, and there is no terminating zero at the end.
Implementations
sourceimpl Record
impl Record
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates an empty diagnostic record with at least the specified capacity for the message.
Using a buffer with a size different from zero then filling the diagnostic record may safe a
second function call to SQLGetDiagRec
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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