INNER CODE UNIT · Rust

after_config

rustic-rs/rustic · src/application.rs:97

    fn after_config(&mut self, config: Self::Cfg) -> Result<(), FrameworkError> {
        // Configure components
        self.state.components_mut().after_config(&config)?;

        // set all given environment variables
        for (env, value) in &config.global.env {
            unsafe {
                env::set_var(env, value);
            }
        }

        let global_hooks = config.global.hooks.clone();
        self.config.set_once(config);

        global_hooks.run_before().map_err(|err| -> FrameworkError {
            FrameworkErrorKind::ProcessError.context(err).into()
        })?;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…