#[repr(C)]pub struct auth_plugin_t {Show 13 fields
pub type_: c_int,
pub interface_version: c_uint,
pub name: *const c_char,
pub author: *const c_char,
pub desc: *const c_char,
pub version: [c_uint; 3],
pub license: *const c_char,
pub mysql_api: *mut c_void,
pub init: Option<unsafe extern "C" fn(arg1: *mut c_char, arg2: size_t, arg3: c_int, arg4: *mut __va_list_tag) -> c_int>,
pub deinit: Option<unsafe extern "C" fn() -> c_int>,
pub options: Option<unsafe extern "C" fn(option: *const c_char, arg1: *const c_void) -> c_int>,
pub authenticate_user: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, mysql: *mut MYSQL) -> c_int>,
pub authenticate_user_nonblocking: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, mysql: *mut MYSQL, result: *mut c_int) -> net_async_status>,
}
Fields§
§type_: c_int
§interface_version: c_uint
§name: *const c_char
§desc: *const c_char
§version: [c_uint; 3]
§license: *const c_char
§mysql_api: *mut c_void
§init: Option<unsafe extern "C" fn(arg1: *mut c_char, arg2: size_t, arg3: c_int, arg4: *mut __va_list_tag) -> c_int>
§deinit: Option<unsafe extern "C" fn() -> c_int>
§options: Option<unsafe extern "C" fn(option: *const c_char, arg1: *const c_void) -> c_int>
§authenticate_user: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, mysql: *mut MYSQL) -> c_int>
§authenticate_user_nonblocking: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, mysql: *mut MYSQL, result: *mut c_int) -> net_async_status>
Trait Implementations§
Source§impl Clone for auth_plugin_t
impl Clone for auth_plugin_t
Source§fn clone(&self) -> auth_plugin_t
fn clone(&self) -> auth_plugin_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for auth_plugin_t
impl Debug for auth_plugin_t
impl Copy for auth_plugin_t
Auto Trait Implementations§
impl Freeze for auth_plugin_t
impl RefUnwindSafe for auth_plugin_t
impl !Send for auth_plugin_t
impl !Sync for auth_plugin_t
impl Unpin for auth_plugin_t
impl UnwindSafe for auth_plugin_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more