pub trait ConfigSourceParser: Send {
type Adaptor: ConfigSourceAdaptor;
// Required methods
fn parse_source(_: &str) -> Result<Self::Adaptor, ConfigError>;
fn file_extensions() -> Vec<&'static str>;
}
Expand description
Parse config source from string.
Required Associated Types§
Sourcetype Adaptor: ConfigSourceAdaptor
type Adaptor: ConfigSourceAdaptor
Config source adaptor.
Required Methods§
Sourcefn parse_source(_: &str) -> Result<Self::Adaptor, ConfigError>
fn parse_source(_: &str) -> Result<Self::Adaptor, ConfigError>
Parse config source.
Sourcefn file_extensions() -> Vec<&'static str>
fn file_extensions() -> Vec<&'static str>
File extenstions.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl ConfigSourceParser for Ini
Available on crate feature ini
only.
impl ConfigSourceParser for Ini
Available on crate feature
ini
only.