mysqlclient_sys

Struct st_mysql_options

Source
#[repr(C)]
pub struct st_mysql_options {
Show 40 fields pub connect_timeout: c_uint, pub read_timeout: c_uint, pub write_timeout: c_uint, pub port: c_uint, pub protocol: c_uint, pub client_flag: c_ulong, pub host: *mut c_char, pub user: *mut c_char, pub password: *mut c_char, pub unix_socket: *mut c_char, pub db: *mut c_char, pub init_command: *mut st_dynamic_array, pub my_cnf_file: *mut c_char, pub my_cnf_group: *mut c_char, pub charset_dir: *mut c_char, pub charset_name: *mut c_char, pub ssl_key: *mut c_char, pub ssl_cert: *mut c_char, pub ssl_ca: *mut c_char, pub ssl_capath: *mut c_char, pub ssl_cipher: *mut c_char, pub shared_memory_base_name: *mut c_char, pub max_allowed_packet: c_ulong, pub use_ssl: my_bool, pub compress: my_bool, pub named_pipe: my_bool, pub reconnect: my_bool, pub unused_1: my_bool, pub unused_2: my_bool, pub unused_3: my_bool, pub methods_to_use: mysql_option, pub bind_address: *mut c_char, pub secure_auth: my_bool, pub report_data_truncation: my_bool, pub local_infile_init: Option<unsafe extern "C" fn(arg1: *mut *mut c_void, arg2: *const c_char, arg3: *mut c_void) -> c_int>, pub local_infile_read: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_char, arg3: c_uint) -> c_int>, pub local_infile_end: Option<unsafe extern "C" fn(arg1: *mut c_void)>, pub local_infile_error: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_char, arg3: c_uint) -> c_int>, pub local_infile_userdata: *mut c_void, pub extension: *mut st_mysql_options_extension,
}

Fields§

§connect_timeout: c_uint§read_timeout: c_uint§write_timeout: c_uint§port: c_uint§protocol: c_uint§client_flag: c_ulong§host: *mut c_char§user: *mut c_char§password: *mut c_char§unix_socket: *mut c_char§db: *mut c_char§init_command: *mut st_dynamic_array§my_cnf_file: *mut c_char§my_cnf_group: *mut c_char§charset_dir: *mut c_char§charset_name: *mut c_char§ssl_key: *mut c_char§ssl_cert: *mut c_char§ssl_ca: *mut c_char§ssl_capath: *mut c_char§ssl_cipher: *mut c_char§shared_memory_base_name: *mut c_char§max_allowed_packet: c_ulong§use_ssl: my_bool§compress: my_bool§named_pipe: my_bool§reconnect: my_bool§unused_1: my_bool§unused_2: my_bool§unused_3: my_bool§methods_to_use: mysql_option§bind_address: *mut c_char§secure_auth: my_bool§report_data_truncation: my_bool§local_infile_init: Option<unsafe extern "C" fn(arg1: *mut *mut c_void, arg2: *const c_char, arg3: *mut c_void) -> c_int>§local_infile_read: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_char, arg3: c_uint) -> c_int>§local_infile_end: Option<unsafe extern "C" fn(arg1: *mut c_void)>§local_infile_error: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_char, arg3: c_uint) -> c_int>§local_infile_userdata: *mut c_void§extension: *mut st_mysql_options_extension

Trait Implementations§

Source§

impl Clone for st_mysql_options

Source§

fn clone(&self) -> st_mysql_options

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_mysql_options

Source§

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

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

impl Copy for st_mysql_options

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.