pub struct LoaderConfig {
pub engine_config: EngineConfig,
pub compile_options: CompileOptions,
pub host_api_version: ApiVersion,
pub base_path: Option<PathBuf>,
pub auto_start: bool,
pub strict_validation: bool,
}Expand description
Configuration for the plugin loader.
Fields§
§engine_config: EngineConfigDefault engine configuration for plugins.
compile_options: CompileOptionsCompilation options.
host_api_version: ApiVersionHost API version.
base_path: Option<PathBuf>Base path for resolving relative paths.
auto_start: boolWhether to automatically start plugins after loading.
strict_validation: boolWhether to validate manifests strictly.
Implementations§
Source§impl LoaderConfig
impl LoaderConfig
Sourcepub fn with_engine_config(self, config: EngineConfig) -> Self
pub fn with_engine_config(self, config: EngineConfig) -> Self
Set the engine configuration.
Sourcepub fn with_compile_options(self, options: CompileOptions) -> Self
pub fn with_compile_options(self, options: CompileOptions) -> Self
Set the compile options.
Sourcepub fn with_host_api_version(self, version: ApiVersion) -> Self
pub fn with_host_api_version(self, version: ApiVersion) -> Self
Set the host API version.
Sourcepub fn with_base_path(self, path: impl Into<PathBuf>) -> Self
pub fn with_base_path(self, path: impl Into<PathBuf>) -> Self
Set the base path.
Sourcepub fn with_auto_start(self, auto_start: bool) -> Self
pub fn with_auto_start(self, auto_start: bool) -> Self
Set auto-start behavior.
Sourcepub fn with_strict_validation(self, strict: bool) -> Self
pub fn with_strict_validation(self, strict: bool) -> Self
Set strict validation.
Trait Implementations§
Source§impl Clone for LoaderConfig
impl Clone for LoaderConfig
Source§fn clone(&self) -> LoaderConfig
fn clone(&self) -> LoaderConfig
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 LoaderConfig
impl Debug for LoaderConfig
Auto Trait Implementations§
impl Freeze for LoaderConfig
impl RefUnwindSafe for LoaderConfig
impl Send for LoaderConfig
impl Sync for LoaderConfig
impl Unpin for LoaderConfig
impl UnwindSafe for LoaderConfig
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