pub struct LoadedPlugin {
pub library: Library,
pub path: PathBuf,
pub abi_version: u32,
pub registry: ExtensionRegistry,
pub action_bridge: Option<Arc<ActionBridge>>,
}Expand description
A successfully loaded + registered plugin. Holds the Library so the cdylib
stays mapped for the session. Dropping this unloads the plugin (do not drop
while any of its tool drivers may still be running).
Fields§
§library: LibraryThe loaded cdylib. Kept alive for the session.
path: PathBufWhere it was loaded from (for diagnostics).
abi_version: u32ABI version (always RPI_PLUGIN_ABI_VERSION_UNIFIED for plugins
loaded by this version of the loader).
registry: ExtensionRegistryThe registry snapshot built from this plugin’s registrations. The host merges snapshots from all loaded plugins into one session registry.
action_bridge: Option<Arc<ActionBridge>>Retains the plugin-scoped runtime context used by its FFI callbacks.
Auto Trait Implementations§
impl !RefUnwindSafe for LoadedPlugin
impl !UnwindSafe for LoadedPlugin
impl Freeze for LoadedPlugin
impl Send for LoadedPlugin
impl Sync for LoadedPlugin
impl Unpin for LoadedPlugin
impl UnsafeUnpin for LoadedPlugin
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