pub struct DefaultLoader {
pub ops: Box<dyn LoaderOps>,
}Expand description
Reference Loader/FeatureLoader implementation: a generic dispatch shell over
any real LoaderOps implementor.
Doesn’t care what’s boxed inside — the real, filesystem/TOML-backed implementor
(configbuilder-svc-loader-spi) is constructed by
configbuilder-svc-saf and boxed here.
Fields§
§ops: Box<dyn LoaderOps>The real LoaderOps implementor this loader dispatches to.
Trait Implementations§
Source§impl FeatureLoader for DefaultLoader
impl FeatureLoader for DefaultLoader
Source§fn load_feature<T>(&self, key: &str) -> Result<LoadedFeature<T>, ConfigError>where
T: DeserializeOwned,
fn load_feature<T>(&self, key: &str) -> Result<LoadedFeature<T>, ConfigError>where
T: DeserializeOwned,
Load the section at
key with full metadata. Read moreSource§fn load_optional_section<T>(
&self,
key: &str,
) -> Result<FeatureState<T>, ConfigError>where
T: DeserializeOwned,
fn load_optional_section<T>(
&self,
key: &str,
) -> Result<FeatureState<T>, ConfigError>where
T: DeserializeOwned,
Load the section at
key as a FeatureState, without metadata.Source§impl Loader for DefaultLoader
impl Loader for DefaultLoader
Source§fn load_section<T>(&self, key: &str) -> Result<T, ConfigError>where
T: DeserializeOwned + Default,
fn load_section<T>(&self, key: &str) -> Result<T, ConfigError>where
T: DeserializeOwned + Default,
Load the section at
key (dotted path, e.g. "outer.inner") from all
configured directories, merging with last-wins semantics. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DefaultLoader
impl !UnwindSafe for DefaultLoader
impl Forget for DefaultLoader
impl Freeze for DefaultLoader
impl Send for DefaultLoader
impl Sync for DefaultLoader
impl Unpin for DefaultLoader
impl UnsafeUnpin for DefaultLoader
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