pub fn from_file(path: &Path) -> Result<Self> {
        let preconfig = std::fs::read_to_string(path)?;
        let postconfig = shellexpand::full(&preconfig)?;
        toml::from_str::<Service>(&postconfig).map_err(Error::from)
    }
/// Tries to load specific config from path.
/// Config will be automatically templated from env.
/// Correct syntax is required for templating to work.
/// Currently only templating from environment is implemented.
Tries to load specific config from path.
Config will be automatically templated from env.
Correct syntax is required for templating to work.
Currently only templating from environment is implemented.
Tries to load specific config from path . Config will be automatically templated from env . Correct syntax is required for templating to work . Currently only templating from environment is implemented .
pub fn from_file(path: &Path) -> Result<Self> {
        let preconfig = std::fs::read_to_string(path)?;
        let postconfig = shellexpand::full(&preconfig)?;
        toml::from_str::<Service>(&postconfig).map_err(Error::from)
    }
pub fn from_file ( path : & Path ) -> Result < Self > { let preconfig = std :: fs :: read_to_string ( path ) ? ; let postconfig = shellexpand :: full ( & preconfig ) ? ; toml :: from_str :: < Service > ( & postconfig ) . map_err ( Error :: from ) }
Tries to load specific config from path.
Tries to load specific config from path .
path
&Path
path
&Path