Struct gveditor_core_api::extensions::manager::ExtensionsManager [−][src]
pub struct ExtensionsManager {
pub extensions: Vec<LoadedExtension>,
pub sender: Sender<Messages>,
}
Expand description
Manage a group of extensions
Fields
extensions: Vec<LoadedExtension>
sender: Sender<Messages>
Implementations
pub async fn load_extensions_from_path(
&mut self,
path: &Path,
state_id: u8
) -> &mut ExtensionsManager
pub async fn load_extensions_from_path(
&mut self,
path: &Path,
state_id: u8
) -> &mut ExtensionsManager
Returns a vector of pointers to all extensions instances
Arguments
path
- The directory path from where to load the extensionssender
- A mpsc sender to communicate with the corestate_id
- The State ID in whidh it was loaded
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ExtensionsManager
impl Send for ExtensionsManager
impl Sync for ExtensionsManager
impl Unpin for ExtensionsManager
impl !UnwindSafe for ExtensionsManager
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more