pub fn load_config_file<T, P>(config_file: P) -> Result<T, Error>where
    T: DeserializeOwned,
    P: AsRef<Path>,
Expand description

Load a value from a file in YAML format.

Despite the name, this function is generic YAML file deserializer, a thin wrapper around serde.

Most callers should instead use Config::load.

Errors

This function may return typical file I/O errors.