pub struct RuntimeConfig {
pub loader: LoaderConfig,
pub registry: RegistryConfig,
pub plugin_dirs: Vec<PathBuf>,
pub auto_discover: bool,
pub plugin_patterns: Vec<String>,
}Expand description
Configuration for the plugin runtime.
Fields§
§loader: LoaderConfigLoader configuration.
registry: RegistryConfigRegistry configuration.
plugin_dirs: Vec<PathBuf>Plugin directories to scan.
auto_discover: boolWhether to auto-discover plugins.
plugin_patterns: Vec<String>File patterns to match for plugins.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn with_loader(self, loader: LoaderConfig) -> Self
pub fn with_loader(self, loader: LoaderConfig) -> Self
Set the loader configuration.
Sourcepub fn with_registry(self, registry: RegistryConfig) -> Self
pub fn with_registry(self, registry: RegistryConfig) -> Self
Set the registry configuration.
Sourcepub fn with_plugin_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn with_plugin_dir(self, dir: impl Into<PathBuf>) -> Self
Add a plugin directory.
Sourcepub fn with_auto_discover(self, auto: bool) -> Self
pub fn with_auto_discover(self, auto: bool) -> Self
Enable auto-discovery.
Sourcepub fn with_plugin_patterns(self, patterns: Vec<String>) -> Self
pub fn with_plugin_patterns(self, patterns: Vec<String>) -> Self
Set plugin patterns.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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