Skip to main content

resolve_conf_relative_path

Function resolve_conf_relative_path 

Source
pub fn resolve_conf_relative_path(
    conf_path: &Path,
    raw_value: &str,
) -> Option<String>
Expand description

Resolves a config value relative to the config file that declared it.

§Parameters

§Returns

Returns Some when crate::config::resolve_conf_relative_path can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_runtime_core::config::resolve_conf_relative_path(std::path::Path::new("app.conf"), "logs/app.log");
  • crate::config for adjacent helpers that share the same runtime surface.