#[repr(C)]pub struct PluginAssetsApi {
pub any_plugins: Option<unsafe extern "C" fn(tt: *mut TheTruthO) -> bool>,
pub init_truth: Option<unsafe extern "C" fn(tt: *mut TheTruthO, allow_code_execution: bool)>,
pub shutdown_truth: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>,
pub update_truth: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>,
pub allow_code_execution: Option<unsafe extern "C" fn(tt: *mut TheTruthO) -> bool>,
pub set_allow_code_execution: Option<unsafe extern "C" fn(tt: *mut TheTruthO, allow_code_execution: bool)>,
}
Fields§
§any_plugins: Option<unsafe extern "C" fn(tt: *mut TheTruthO) -> bool>
§init_truth: Option<unsafe extern "C" fn(tt: *mut TheTruthO, allow_code_execution: bool)>
§shutdown_truth: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>
§update_truth: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>
§allow_code_execution: Option<unsafe extern "C" fn(tt: *mut TheTruthO) -> bool>
§set_allow_code_execution: Option<unsafe extern "C" fn(tt: *mut TheTruthO, allow_code_execution: bool)>
Implementations§
Source§impl PluginAssetsApi
impl PluginAssetsApi
pub unsafe fn any_plugins(&self, tt: *mut TheTruthO) -> bool
pub unsafe fn init_truth(&self, tt: *mut TheTruthO, allow_code_execution: bool)
pub unsafe fn shutdown_truth(&self, tt: *mut TheTruthO)
pub unsafe fn update_truth(&self, tt: *mut TheTruthO)
pub unsafe fn allow_code_execution(&self, tt: *mut TheTruthO) -> bool
pub unsafe fn set_allow_code_execution( &self, tt: *mut TheTruthO, allow_code_execution: bool, )
Trait Implementations§
Source§impl Clone for PluginAssetsApi
impl Clone for PluginAssetsApi
Source§fn clone(&self) -> PluginAssetsApi
fn clone(&self) -> PluginAssetsApi
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 PluginAssetsApi
impl Default for PluginAssetsApi
Source§fn default() -> PluginAssetsApi
fn default() -> PluginAssetsApi
Returns the “default value” for a type. Read more
impl Copy for PluginAssetsApi
Auto Trait Implementations§
impl Freeze for PluginAssetsApi
impl RefUnwindSafe for PluginAssetsApi
impl Send for PluginAssetsApi
impl Sync for PluginAssetsApi
impl Unpin for PluginAssetsApi
impl UnwindSafe for PluginAssetsApi
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