pub struct PluginManager { /* private fields */ }Implementations§
Source§impl PluginManager
impl PluginManager
pub fn new(host_dir: &Path, service_provider: HostServiceHandler) -> Self
pub fn register_built_in_plugins(&mut self, plugin: Box<Arc<dyn Plugin + Send>>)
pub fn load_third_party_plugins( &mut self, runtime_handle: &RuntimeHandle, service_provider: &HostServiceProvider, ) -> Result<(), String>
pub fn subscribe_events( &mut self, notify_ctrl: &NotifyController, runtime_handle: &Handle, )
pub fn plugin_configs(&self) -> &HashMap<String, (PluginMeta, PluginInfo)>
pub fn service_handler(&self) -> HostServiceHandler
Auto Trait Implementations§
impl Freeze for PluginManager
impl !RefUnwindSafe for PluginManager
impl Send for PluginManager
impl Sync for PluginManager
impl Unpin for PluginManager
impl !UnwindSafe for PluginManager
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