pub struct LoadedPlugin {
pub library: Library,
pub path: PathBuf,
pub abi_version: u32,
pub registry: ExtensionRegistry,
}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 selected from the exported register symbol (1 or 2).
registry: ExtensionRegistryThe registry snapshot built from this plugin’s registrations. The host merges snapshots from all loaded plugins into one session registry.
Auto Trait Implementations§
impl Freeze for LoadedPlugin
impl RefUnwindSafe for LoadedPlugin
impl Send for LoadedPlugin
impl Sync for LoadedPlugin
impl Unpin for LoadedPlugin
impl UnsafeUnpin for LoadedPlugin
impl UnwindSafe 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