CustomScriptingProvider

Trait CustomScriptingProvider 

Source
pub trait CustomScriptingProvider {
    type Instance: CustomScriptingInstance;

    const NAME: &'static str;
    const API_NAME: &'static str;

    // Required methods
    fn load_module(
        &self,
        repo_path: &str,
        plugin_path: &str,
        force: bool,
    ) -> bool;
    fn install_modules(&self, modules: &str) -> bool;
    fn create_instance(&self) -> Self::Instance;
}

Required Associated Constants§

Source

const NAME: &'static str

Source

const API_NAME: &'static str

Required Associated Types§

Required Methods§

Source

fn load_module(&self, repo_path: &str, plugin_path: &str, force: bool) -> bool

Source

fn install_modules(&self, modules: &str) -> bool

Source

fn create_instance(&self) -> Self::Instance

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§