pub struct PluginDeclaration {
pub rustc_version: &'static str,
pub core_version: &'static str,
pub register: unsafe extern "C" fn(&mut dyn PluginRegistrar),
}Expand description
An internal struct to load plugins from the app. The version of rustc and autoclip-core may be checked on loading.
Fields§
§rustc_version: &'static strThe version of rustc, used to compile the core. This should be set on build-time.
core_version: &'static strThe version of the core. This also should be set on build-time.
register: unsafe extern "C" fn(&mut dyn PluginRegistrar)The function to register a plugin to the app.
In this function, PluginRegistrar::register must be called.
Auto Trait Implementations§
impl Freeze for PluginDeclaration
impl RefUnwindSafe for PluginDeclaration
impl Send for PluginDeclaration
impl Sync for PluginDeclaration
impl Unpin for PluginDeclaration
impl UnwindSafe for PluginDeclaration
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