pub struct Record {
    pub state: State,
    pub native_error: i32,
    pub message: Vec<SqlChar>,
}
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

Fill this diagnostic Record from any ODBC handle.

Return

true if a record has been found, false if not.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.