pub struct LayeredSource { /* private fields */ }Expand description
A configuration source that layers multiple sources with priority.
Later sources override earlier sources when keys conflict.
Implementations§
Source§impl LayeredSource
impl LayeredSource
Trait Implementations§
Source§impl Source for LayeredSource
impl Source for LayeredSource
Source§fn load<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ConfigValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ConfigValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
👎Deprecated since 0.4.0: Use the Loader trait instead. Source will be removed in a future version.
Load configuration data from this source.
Auto Trait Implementations§
impl Freeze for LayeredSource
impl !RefUnwindSafe for LayeredSource
impl Send for LayeredSource
impl Sync for LayeredSource
impl Unpin for LayeredSource
impl !UnwindSafe for LayeredSource
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