Trait ResolveEnv

Source
pub trait ResolveEnv {
    // Provided method
    fn resolve_env<F>(&mut self, _env_fn: F) -> Result<(), E>
       where F: Fn(&str) -> Result<String, E> { ... }
}
Expand description

Trait that tasks implement to specify how to replace environment variables in their configuration.

Provided Methods§

Source

fn resolve_env<F>(&mut self, _env_fn: F) -> Result<(), E>
where F: Fn(&str) -> Result<String, E>,

Expand env vars in self by running env_fn() on its component strings.

§Errors

resolve_env() should return any errors returned by the env_fn().

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ResolveEnv for Vec<GenerateGitConfig>

Source§

fn resolve_env<F>(&mut self, env_fn: F) -> Result<(), TaskError>
where F: Fn(&str) -> Result<String, TaskError>,

Source§

impl ResolveEnv for Vec<GitConfig>

Source§

fn resolve_env<F>(&mut self, env_fn: F) -> Result<(), TaskError>
where F: Fn(&str) -> Result<String, TaskError>,

Implementors§