#[repr(C)]pub struct Plugin {Show 14 fields
pub plugin_type: PluginType,
pub info: *const c_void,
pub name: *const u8,
pub author: *const u8,
pub descr: *const u8,
pub license: License,
pub init: *const InitFunc,
pub check_uninstall: *const CheckUninstallFunc,
pub deinit: *const DeinitFunc,
pub version: u32,
pub status_vars: *const c_void,
pub system_vars: *const c_void,
pub reserved: *const c_void,
pub flags: c_ulong,
}
Expand description
A plugin description.
Fields§
§plugin_type: PluginType
The type of the plugin.
info: *const c_void
Pointer to one of the supported info structures.
These are:
StorageEngineInfo
name: *const u8
The name of the plugin.
The author (Person or organization).
descr: *const u8
The description.
license: License
The license under which the plugin is published.
init: *const InitFunc
Function to invoke when plugin is loaded.
check_uninstall: *const CheckUninstallFunc
Function to invoke when plugin is uninstalled.
deinit: *const DeinitFunc
Function to invoke when plugin is unloaded.
version: u32
Version number of the plugin.
status_vars: *const c_void
TODO: SHOW STATUS Server status variable
system_vars: *const c_void
TODO: Definition of system vars structure for access their information in the plugin
reserved: *const c_void
Reserved for dependency checking.
flags: c_ulong
Flags for the plugin.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plugin
impl RefUnwindSafe for Plugin
impl !Send for Plugin
impl Unpin for Plugin
impl UnwindSafe for Plugin
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