pub struct RegistryConfig {
pub max_plugins: usize,
pub allow_overwrite: bool,
pub auto_unload_stopped: bool,
}Expand description
Configuration for the plugin registry.
Fields§
§max_plugins: usizeMaximum number of plugins allowed.
allow_overwrite: boolWhether to allow plugin overwrites.
auto_unload_stopped: boolWhether to automatically unload stopped plugins.
Implementations§
Source§impl RegistryConfig
impl RegistryConfig
Sourcepub fn with_max_plugins(self, max: usize) -> Self
pub fn with_max_plugins(self, max: usize) -> Self
Set the maximum number of plugins.
Sourcepub fn with_allow_overwrite(self, allow: bool) -> Self
pub fn with_allow_overwrite(self, allow: bool) -> Self
Allow plugin overwrites.
Sourcepub fn with_auto_unload_stopped(self, auto: bool) -> Self
pub fn with_auto_unload_stopped(self, auto: bool) -> Self
Enable auto-unload for stopped plugins.
Trait Implementations§
Source§impl Clone for RegistryConfig
impl Clone for RegistryConfig
Source§fn clone(&self) -> RegistryConfig
fn clone(&self) -> RegistryConfig
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 RegistryConfig
impl Debug for RegistryConfig
Auto Trait Implementations§
impl Freeze for RegistryConfig
impl RefUnwindSafe for RegistryConfig
impl Send for RegistryConfig
impl Sync for RegistryConfig
impl Unpin for RegistryConfig
impl UnwindSafe for RegistryConfig
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