#[repr(C)]pub struct tm_plugins_api {
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 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(dir: *const c_char, ta: *mut tm_temp_allocator_i) -> *mut *const c_char>,
pub load_plugin_context: Option<unsafe extern "C" fn() -> *const c_char>,
pub plugin_dllpath: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i, exe: *const c_char, name: *const c_char) -> *const c_char>,
pub app_dllpath: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i, 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)>§check_hot_reload: Option<unsafe extern "C" fn() -> bool>§reload_count: Option<unsafe extern "C" fn() -> u64>§enumerate: Option<unsafe extern "C" fn(dir: *const c_char, ta: *mut tm_temp_allocator_i) -> *mut *const c_char>§load_plugin_context: Option<unsafe extern "C" fn() -> *const c_char>§plugin_dllpath: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i, exe: *const c_char, name: *const c_char) -> *const c_char>§app_dllpath: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i, exe: *const c_char, name: *const c_char) -> *const c_char>Trait Implementations§
Source§impl Clone for tm_plugins_api
impl Clone for tm_plugins_api
Source§fn clone(&self) -> tm_plugins_api
fn clone(&self) -> tm_plugins_api
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 moreimpl Copy for tm_plugins_api
Auto Trait Implementations§
impl Freeze for tm_plugins_api
impl RefUnwindSafe for tm_plugins_api
impl Send for tm_plugins_api
impl Sync for tm_plugins_api
impl Unpin for tm_plugins_api
impl UnwindSafe for tm_plugins_api
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