#[repr(C)]pub struct PluginsApi {
pub load: Option<unsafe extern "C" fn(path: *const c_char, hot_reload: bool) -> u64>,
pub unload: Option<unsafe extern "C" fn(plugin: u64)>,
pub reload: Option<unsafe extern "C" fn(plugin: u64)>,
pub set_path: Option<unsafe extern "C" fn(plugin: u64, path: *const c_char)>,
pub check_hot_reload: Option<unsafe extern "C" fn() -> bool>,
pub reload_count: Option<unsafe extern "C" fn() -> u64>,
pub enumerate: Option<unsafe extern "C" fn(directory: *const c_char, ta: *mut TempAllocatorI) -> *mut *const c_char>,
pub plugin_dllpath: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, exe: *const c_char, name: *const c_char) -> *const c_char>,
pub app_dllpath: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, exe: *const c_char, name: *const c_char) -> *const c_char>,
}
Fields§
§load: Option<unsafe extern "C" fn(path: *const c_char, hot_reload: bool) -> u64>
§unload: Option<unsafe extern "C" fn(plugin: u64)>
§reload: Option<unsafe extern "C" fn(plugin: u64)>
§set_path: Option<unsafe extern "C" fn(plugin: u64, path: *const c_char)>
§check_hot_reload: Option<unsafe extern "C" fn() -> bool>
§reload_count: Option<unsafe extern "C" fn() -> u64>
§enumerate: Option<unsafe extern "C" fn(directory: *const c_char, ta: *mut TempAllocatorI) -> *mut *const c_char>
§plugin_dllpath: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, exe: *const c_char, name: *const c_char) -> *const c_char>
§app_dllpath: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, exe: *const c_char, name: *const c_char) -> *const c_char>
Implementations§
Source§impl PluginsApi
impl PluginsApi
pub unsafe fn load(&self, path: *const c_char, hot_reload: bool) -> u64
pub unsafe fn unload(&self, plugin: u64)
pub unsafe fn reload(&self, plugin: u64)
pub unsafe fn set_path(&self, plugin: u64, path: *const c_char)
pub unsafe fn check_hot_reload(&self) -> bool
pub unsafe fn reload_count(&self) -> u64
pub unsafe fn enumerate( &self, directory: *const c_char, ta: *mut TempAllocatorI, ) -> *mut *const c_char
pub unsafe fn plugin_dllpath( &self, ta: *mut TempAllocatorI, exe: *const c_char, name: *const c_char, ) -> *const c_char
pub unsafe fn app_dllpath( &self, ta: *mut TempAllocatorI, exe: *const c_char, name: *const c_char, ) -> *const c_char
Trait Implementations§
Source§impl Clone for PluginsApi
impl Clone for PluginsApi
Source§fn clone(&self) -> PluginsApi
fn clone(&self) -> PluginsApi
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 Default for PluginsApi
impl Default for PluginsApi
Source§fn default() -> PluginsApi
fn default() -> PluginsApi
Returns the “default value” for a type. Read more
impl Copy for PluginsApi
Auto Trait Implementations§
impl Freeze for PluginsApi
impl RefUnwindSafe for PluginsApi
impl Send for PluginsApi
impl Sync for PluginsApi
impl Unpin for PluginsApi
impl UnwindSafe for PluginsApi
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