pub struct PluginLoader { /* private fields */ }Implementations§
Source§impl PluginLoader
impl PluginLoader
pub fn new() -> Self
Sourcepub fn with_verifier(verifier: PluginVerifier) -> Self
pub fn with_verifier(verifier: PluginVerifier) -> Self
Create a loader that verifies plugin binaries against verifier.
Sourcepub fn verifier_mut(&mut self) -> &mut PluginVerifier
pub fn verifier_mut(&mut self) -> &mut PluginVerifier
Access the integrity verifier to configure trusted hashes at runtime.
pub fn load_plugin<P: AsRef<Path>>( &mut self, path: P, context: &PluginContext, ) -> Result<(Box<dyn Plugin>, PluginMetadata)>
pub fn unload_all(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PluginLoader
impl RefUnwindSafe for PluginLoader
impl Send for PluginLoader
impl Sync for PluginLoader
impl Unpin for PluginLoader
impl UnsafeUnpin for PluginLoader
impl UnwindSafe for PluginLoader
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