odbc_api::handles

Trait AsHandle

Source
pub unsafe trait AsHandle {
    // Required methods
    fn as_handle(&self) -> Handle;
    fn handle_type(&self) -> HandleType;
}
Expand description

Provides access to the raw underlying ODBC handle.

§Safety

The handle provided by as_handle must be valid and match the type returned by handle_type.

Required Methods§

Source

fn as_handle(&self) -> Handle

The raw underlying ODBC handle used to talk to the ODBC C API. The handle must be valid.

Source

fn handle_type(&self) -> HandleType

The type of the ODBC handle returned by as_handle. This is a method rather than a constant in order to make the type object safe.

Implementors§