pub struct ConfigCookbookProvider<'a, R: LoadableLibResolver + ?Sized> { /* private fields */ }Expand description
Cookbook config provider backed by a merged effective config Dir.
Implementations§
Source§impl<'a, R: LoadableLibResolver + ?Sized> ConfigCookbookProvider<'a, R>
impl<'a, R: LoadableLibResolver + ?Sized> ConfigCookbookProvider<'a, R>
Sourcepub fn new(effective: &EffectiveConfig, resolver: &'a R) -> Self
pub fn new(effective: &EffectiveConfig, resolver: &'a R) -> Self
Reads the effective sim/cookbook table and prepares a directory
provider over resolver.
Sourcepub fn new_with_base(
effective: &EffectiveConfig,
base: CookbookConfig,
resolver: &'a R,
) -> Self
pub fn new_with_base( effective: &EffectiveConfig, base: CookbookConfig, resolver: &'a R, ) -> Self
Reads the effective sim/cookbook table as an overlay over base.
Sourcepub fn config(&self) -> &CookbookConfig
pub fn config(&self) -> &CookbookConfig
Returns the effective cookbook config snapshot.
Sourcepub fn minimum_loaded(&self) -> &[String]
pub fn minimum_loaded(&self) -> &[String]
Returns the configured minimum boot set without loading it.
Sourcepub fn loadable_libs(&self) -> (LoadableLibList, Vec<String>)
pub fn loadable_libs(&self) -> (LoadableLibList, Vec<String>)
Resolves the configured loadable-lib directory.
Auto Trait Implementations§
impl<'a, R> Freeze for ConfigCookbookProvider<'a, R>where
R: ?Sized,
impl<'a, R> RefUnwindSafe for ConfigCookbookProvider<'a, R>where
R: RefUnwindSafe + ?Sized,
impl<'a, R> Send for ConfigCookbookProvider<'a, R>
impl<'a, R> Sync for ConfigCookbookProvider<'a, R>
impl<'a, R> Unpin for ConfigCookbookProvider<'a, R>where
R: ?Sized,
impl<'a, R> UnsafeUnpin for ConfigCookbookProvider<'a, R>where
R: ?Sized,
impl<'a, R> UnwindSafe for ConfigCookbookProvider<'a, R>where
R: RefUnwindSafe + ?Sized,
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