Struct devrc_plugins::execution::ExecutionPluginManager
source · pub struct ExecutionPluginManager { /* private fields */ }
Implementations§
source§impl ExecutionPluginManager
impl ExecutionPluginManager
pub fn new() -> ExecutionPluginManager
pub fn setup_logger(&mut self, logger: LogLevel)
sourcepub unsafe fn load_plugin<P: AsRef<OsStr>>(
&mut self,
name: &str,
filename: P,
logger: LogLevel
) -> DevrcPluginResult<()>
pub unsafe fn load_plugin<P: AsRef<OsStr>>( &mut self, name: &str, filename: P, logger: LogLevel ) -> DevrcPluginResult<()>
Safety
This function load plugin from dynamic library
sourcepub fn unload(&mut self)
pub fn unload(&mut self)
Unload all plugins and loaded plugin libraries, making sure to fire
their on_plugin_unload()
methods so they can do any necessary cleanup.
pub fn get_plugin( &mut self, plugin_name: &str ) -> DevrcPluginResult<&Box<dyn ExecutionPlugin>>
Trait Implementations§
source§impl Debug for ExecutionPluginManager
impl Debug for ExecutionPluginManager
source§impl Default for ExecutionPluginManager
impl Default for ExecutionPluginManager
source§fn default() -> ExecutionPluginManager
fn default() -> ExecutionPluginManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutionPluginManager
impl Send for ExecutionPluginManager
impl Sync for ExecutionPluginManager
impl Unpin for ExecutionPluginManager
impl !UnwindSafe for ExecutionPluginManager
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