pub struct ChainedConfigurationSource { /* private fields */ }
Available on crate feature
chained
only.Expand description
Represents a chained ConfigurationSource
.
Implementations§
Source§impl ChainedConfigurationSource
impl ChainedConfigurationSource
Sourcepub fn new(configuration: Box<dyn Configuration>) -> Self
pub fn new(configuration: Box<dyn Configuration>) -> Self
Initializes a new chained configuration sources.
§Arguments
configuration
- TheConfiguration
to chain
Sourcepub fn configuration(&self) -> &dyn Configuration
pub fn configuration(&self) -> &dyn Configuration
Gets the associated Configuration
.
Trait Implementations§
Source§impl ConfigurationSource for ChainedConfigurationSource
impl ConfigurationSource for ChainedConfigurationSource
Source§fn build(
&self,
_builder: &dyn ConfigurationBuilder,
) -> Box<dyn ConfigurationProvider>
fn build( &self, _builder: &dyn ConfigurationBuilder, ) -> Box<dyn ConfigurationProvider>
Builds the
ConfigurationProvider
for this source. Read moreSource§impl From<Box<dyn Configuration>> for ChainedConfigurationSource
impl From<Box<dyn Configuration>> for ChainedConfigurationSource
Source§fn from(value: Box<dyn Configuration>) -> Self
fn from(value: Box<dyn Configuration>) -> Self
Converts to this type from the input type.
Source§impl From<Rc<dyn Configuration>> for ChainedConfigurationSource
impl From<Rc<dyn Configuration>> for ChainedConfigurationSource
Source§fn from(value: Rc<dyn Configuration>) -> Self
fn from(value: Rc<dyn Configuration>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChainedConfigurationSource
impl !RefUnwindSafe for ChainedConfigurationSource
impl !Send for ChainedConfigurationSource
impl !Sync for ChainedConfigurationSource
impl Unpin for ChainedConfigurationSource
impl !UnwindSafe for ChainedConfigurationSource
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