Struct mysqlclient_sys::st_mariadb_methods

source ·
#[repr(C)]
pub struct st_mariadb_methods {
Show 21 fields pub db_connect: Option<unsafe extern "C" fn(mysql: *mut MYSQL, host: *const c_char, user: *const c_char, passwd: *const c_char, db: *const c_char, port: c_uint, unix_socket: *const c_char, clientflag: c_ulong) -> *mut MYSQL>, pub db_close: Option<unsafe extern "C" fn(mysql: *mut MYSQL)>, pub db_command: Option<unsafe extern "C" fn(mysql: *mut MYSQL, command: enum_server_command, arg: *const c_char, length: usize, skip_check: my_bool, opt_arg: *mut c_void) -> c_int>, pub db_skip_result: Option<unsafe extern "C" fn(mysql: *mut MYSQL)>, pub db_read_query_result: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> c_int>, pub db_read_rows: Option<unsafe extern "C" fn(mysql: *mut MYSQL, fields: *mut MYSQL_FIELD, field_count: c_uint) -> *mut MYSQL_DATA>, pub db_read_one_row: Option<unsafe extern "C" fn(mysql: *mut MYSQL, fields: c_uint, row: MYSQL_ROW, lengths: *mut c_ulong) -> c_int>, pub db_supported_buffer_type: Option<unsafe extern "C" fn(type_: enum_field_types) -> my_bool>, pub db_read_prepare_response: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT) -> my_bool>, pub db_read_stmt_result: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> c_int>, pub db_stmt_get_result_metadata: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT) -> my_bool>, pub db_stmt_get_param_metadata: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT) -> my_bool>, pub db_stmt_read_all_rows: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT) -> c_int>, pub db_stmt_fetch: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT, row: *mut *mut c_uchar) -> c_int>, pub db_stmt_fetch_to_bind: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT, row: *mut c_uchar) -> c_int>, pub db_stmt_flush_unbuffered: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT)>, pub set_error: Option<unsafe extern "C" fn(mysql: *mut MYSQL, error_nr: c_uint, sqlstate: *const c_char, format: *const c_char, ...)>, pub invalidate_stmts: Option<unsafe extern "C" fn(mysql: *mut MYSQL, function_name: *const c_char)>, pub api: *mut st_mariadb_api, pub db_read_execute_response: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT) -> c_int>, pub db_execute_generate_request: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT, request_len: *mut usize, internal: my_bool) -> *mut c_uchar>,
}

Fields§

§db_connect: Option<unsafe extern "C" fn(mysql: *mut MYSQL, host: *const c_char, user: *const c_char, passwd: *const c_char, db: *const c_char, port: c_uint, unix_socket: *const c_char, clientflag: c_ulong) -> *mut MYSQL>§db_close: Option<unsafe extern "C" fn(mysql: *mut MYSQL)>§db_command: Option<unsafe extern "C" fn(mysql: *mut MYSQL, command: enum_server_command, arg: *const c_char, length: usize, skip_check: my_bool, opt_arg: *mut c_void) -> c_int>§db_skip_result: Option<unsafe extern "C" fn(mysql: *mut MYSQL)>§db_read_query_result: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> c_int>§db_read_rows: Option<unsafe extern "C" fn(mysql: *mut MYSQL, fields: *mut MYSQL_FIELD, field_count: c_uint) -> *mut MYSQL_DATA>§db_read_one_row: Option<unsafe extern "C" fn(mysql: *mut MYSQL, fields: c_uint, row: MYSQL_ROW, lengths: *mut c_ulong) -> c_int>§db_supported_buffer_type: Option<unsafe extern "C" fn(type_: enum_field_types) -> my_bool>§db_read_prepare_response: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT) -> my_bool>§db_read_stmt_result: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> c_int>§db_stmt_get_result_metadata: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT) -> my_bool>§db_stmt_get_param_metadata: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT) -> my_bool>§db_stmt_read_all_rows: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT) -> c_int>§db_stmt_fetch: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT, row: *mut *mut c_uchar) -> c_int>§db_stmt_fetch_to_bind: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT, row: *mut c_uchar) -> c_int>§db_stmt_flush_unbuffered: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT)>§set_error: Option<unsafe extern "C" fn(mysql: *mut MYSQL, error_nr: c_uint, sqlstate: *const c_char, format: *const c_char, ...)>§invalidate_stmts: Option<unsafe extern "C" fn(mysql: *mut MYSQL, function_name: *const c_char)>§api: *mut st_mariadb_api§db_read_execute_response: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT) -> c_int>§db_execute_generate_request: Option<unsafe extern "C" fn(stmt: *mut MYSQL_STMT, request_len: *mut usize, internal: my_bool) -> *mut c_uchar>

Trait Implementations§

source§

impl Clone for st_mariadb_methods

source§

fn clone(&self) -> st_mariadb_methods

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for st_mariadb_methods

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for st_mariadb_methods

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.