Struct machinery_api::foundation::PluginsApi[][src]

#[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 load_plugin_context: Option<unsafe extern "C" fn() -> *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>load_plugin_context: Option<unsafe extern "C" fn() -> *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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.