#[repr(C)]pub struct tm_plugins_api {
pub load: Option<unsafe extern "C" fn(*const i8, bool) -> u64>,
pub unload: Option<unsafe extern "C" fn(u64)>,
pub reload: Option<unsafe extern "C" fn(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(*const i8, *mut tm_temp_allocator_i) -> *mut *const i8>,
pub load_plugin_context: Option<unsafe extern "C" fn() -> *const i8>,
pub plugin_dllpath: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i, *const i8, *const i8) -> *const i8>,
pub app_dllpath: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i, *const i8, *const i8) -> *const i8>,
}Fields§
§load: Option<unsafe extern "C" fn(*const i8, bool) -> u64>§unload: Option<unsafe extern "C" fn(u64)>§reload: Option<unsafe extern "C" fn(u64)>§check_hot_reload: Option<unsafe extern "C" fn() -> bool>§reload_count: Option<unsafe extern "C" fn() -> u64>§enumerate: Option<unsafe extern "C" fn(*const i8, *mut tm_temp_allocator_i) -> *mut *const i8>§load_plugin_context: Option<unsafe extern "C" fn() -> *const i8>§plugin_dllpath: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i, *const i8, *const i8) -> *const i8>§app_dllpath: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i, *const i8, *const i8) -> *const i8>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