[][src]Trait preftool_file::ConfigurationFileFormat

pub trait ConfigurationFileFormat: Clone + Sized {
    type Provider: ConfigurationProvider + 'static;
    fn get_config<R: Read>(reader: R) -> Result<Self::Provider>;
fn default_suffixes() -> &'static [&'static str]; fn file<P: AsRef<Path>>(path: P) -> ConfigurationFileSource<Self> { ... }
fn files<P: AsRef<Path>, I: IntoIterator<Item = P> + Clone + 'static, S: SearchPaths + Clone>(
        suffixes: I,
        search_paths: S,
        app_name: String
    ) -> ConfigurationFileSources<S, Self> { ... }
fn default_config_files<S: SearchPaths + Clone>(
        search_paths: S,
        app_name: String
    ) -> ConfigurationFileSources<S, Self> { ... } }

Associated Types

Loading content...

Required methods

fn get_config<R: Read>(reader: R) -> Result<Self::Provider>

fn default_suffixes() -> &'static [&'static str]

Loading content...

Provided methods

fn file<P: AsRef<Path>>(path: P) -> ConfigurationFileSource<Self>

fn files<P: AsRef<Path>, I: IntoIterator<Item = P> + Clone + 'static, S: SearchPaths + Clone>(
    suffixes: I,
    search_paths: S,
    app_name: String
) -> ConfigurationFileSources<S, Self>

fn default_config_files<S: SearchPaths + Clone>(
    search_paths: S,
    app_name: String
) -> ConfigurationFileSources<S, Self>

Loading content...

Implementors

Loading content...