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 Freeze for ExecutionPluginManager
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