mysqlclient_sys

Struct 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 u8)

🔬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,

Source§

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>,

Source§

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>,

Source§

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.