#[repr(C)]
pub struct sql_service_st {
Show 21 fields pub mysql_init_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> *mut MYSQL>, pub mysql_real_connect_local_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> *mut MYSQL>, pub mysql_real_connect_func: 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 mysql_errno_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> c_uint>, pub mysql_error_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> *const c_char>, pub mysql_real_query_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, q: *const c_char, length: c_ulong) -> c_int>, pub mysql_affected_rows_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> my_ulonglong>, pub mysql_num_rows_func: Option<unsafe extern "C" fn(res: *mut MYSQL_RES) -> my_ulonglong>, pub mysql_store_result_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> *mut MYSQL_RES>, pub mysql_free_result_func: Option<unsafe extern "C" fn(result: *mut MYSQL_RES)>, pub mysql_fetch_row_func: Option<unsafe extern "C" fn(result: *mut MYSQL_RES) -> MYSQL_ROW>, pub mysql_close_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL)>, pub mysql_options_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, option: Type, arg: *const c_void) -> c_int>, pub mysql_fetch_lengths_func: Option<unsafe extern "C" fn(res: *mut MYSQL_RES) -> *mut c_ulong>, pub mysql_set_character_set_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, cs_name: *const c_char) -> c_int>, pub mysql_num_fields_func: Option<unsafe extern "C" fn(res: *mut MYSQL_RES) -> c_uint>, pub mysql_select_db_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, db: *const c_char) -> c_int>, pub mysql_use_result_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> *mut MYSQL_RES>, pub mysql_fetch_fields_func: Option<unsafe extern "C" fn(res: *mut MYSQL_RES) -> *mut MYSQL_FIELD>, pub mysql_real_escape_string_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, to: *mut c_char, from: *const c_char, length: c_ulong) -> c_ulong>, pub mysql_ssl_set_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, key: *const c_char, cert: *const c_char, ca: *const c_char, capath: *const c_char, cipher: *const c_char) -> my_bool>,
}

Fields§

§mysql_init_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> *mut MYSQL>§mysql_real_connect_local_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> *mut MYSQL>§mysql_real_connect_func: 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>§mysql_errno_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> c_uint>§mysql_error_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> *const c_char>§mysql_real_query_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, q: *const c_char, length: c_ulong) -> c_int>§mysql_affected_rows_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> my_ulonglong>§mysql_num_rows_func: Option<unsafe extern "C" fn(res: *mut MYSQL_RES) -> my_ulonglong>§mysql_store_result_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> *mut MYSQL_RES>§mysql_free_result_func: Option<unsafe extern "C" fn(result: *mut MYSQL_RES)>§mysql_fetch_row_func: Option<unsafe extern "C" fn(result: *mut MYSQL_RES) -> MYSQL_ROW>§mysql_close_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL)>§mysql_options_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, option: Type, arg: *const c_void) -> c_int>§mysql_fetch_lengths_func: Option<unsafe extern "C" fn(res: *mut MYSQL_RES) -> *mut c_ulong>§mysql_set_character_set_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, cs_name: *const c_char) -> c_int>§mysql_num_fields_func: Option<unsafe extern "C" fn(res: *mut MYSQL_RES) -> c_uint>§mysql_select_db_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, db: *const c_char) -> c_int>§mysql_use_result_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL) -> *mut MYSQL_RES>§mysql_fetch_fields_func: Option<unsafe extern "C" fn(res: *mut MYSQL_RES) -> *mut MYSQL_FIELD>§mysql_real_escape_string_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, to: *mut c_char, from: *const c_char, length: c_ulong) -> c_ulong>§mysql_ssl_set_func: Option<unsafe extern "C" fn(mysql: *mut MYSQL, key: *const c_char, cert: *const c_char, ca: *const c_char, capath: *const c_char, cipher: *const c_char) -> my_bool>

Trait Implementations§

source§

impl Debug for sql_service_st

source§

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

Formats the value using the given formatter. Read more

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