pub struct CoreConfig { /* private fields */ }Expand description
Configuration used when creating a Core.
Implementations§
Source§impl CoreConfig
impl CoreConfig
Sourcepub const fn with_auto_load_plugins(self, enabled: bool) -> Self
pub const fn with_auto_load_plugins(self, enabled: bool) -> Self
Enables or disables conventional plugin directory scanning.
Sourcepub fn with_logger(self, logger: Logger) -> Self
pub fn with_logger(self, logger: Logger) -> Self
Replaces logger used for plugin diagnostics.
Sourcepub fn with_worker_threads(self, worker_threads: usize) -> Self
pub fn with_worker_threads(self, worker_threads: usize) -> Self
Sets per-core worker thread count. Zero becomes one.
Sourcepub const fn plugin_directories_mut(&mut self) -> &mut Vec<PathBuf>
pub const fn plugin_directories_mut(&mut self) -> &mut Vec<PathBuf>
Returns mutable plugin directory overrides.
Sourcepub const fn worker_threads(&self) -> usize
pub const fn worker_threads(&self) -> usize
Returns configured per-core worker thread count.
Trait Implementations§
Source§impl Clone for CoreConfig
impl Clone for CoreConfig
Source§fn clone(&self) -> CoreConfig
fn clone(&self) -> CoreConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CoreConfig
impl !RefUnwindSafe for CoreConfig
impl Send for CoreConfig
impl Sync for CoreConfig
impl Unpin for CoreConfig
impl UnsafeUnpin for CoreConfig
impl !UnwindSafe for CoreConfig
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