Struct cargo::util::config::Config [] [src]

pub struct Config {
    // some fields omitted
}

Methods

impl Config
[src]

fn new(shell: MultiShell, cwd: PathBuf, homedir: PathBuf) -> CargoResult<Config>

fn default() -> CargoResult<Config>

fn home(&self) -> &Filesystem

fn git_db_path(&self) -> Filesystem

fn git_checkout_path(&self) -> Filesystem

fn registry_index_path(&self) -> Filesystem

fn registry_cache_path(&self) -> Filesystem

fn registry_source_path(&self) -> Filesystem

fn shell(&self) -> RefMut<MultiShell>

fn rustc(&self) -> &Path

fn rustdoc(&self) -> &Path

fn rustc_info(&self) -> &Rustc

fn values(&self) -> CargoResult<Ref<HashMap<StringConfigValue>>>

fn cwd(&self) -> &Path

fn target_dir(&self, pkg: &Package) -> Filesystem

fn set_target_dir(&self, path: Filesystem)

fn get_string(&self, key: &str) -> CargoResult<Option<Value<String>>>

fn get_bool(&self, key: &str) -> CargoResult<Option<Value<bool>>>

fn get_path(&self, key: &str) -> CargoResult<Option<Value<PathBuf>>>

fn get_list(&self, key: &str) -> CargoResult<Option<Value<Vec<(String, PathBuf)>>>>

fn get_table(&self, key: &str) -> CargoResult<Option<Value<HashMap<StringCV>>>>

fn get_i64(&self, key: &str) -> CargoResult<Option<Value<i64>>>

fn net_retry(&self) -> CargoResult<i64>

fn expected<T>(&self, ty: &str, key: &str, val: CV) -> CargoResult<T>

fn configure_shell(&self, verbose: u32, quiet: Option<bool>, color: &Option<String>) -> CargoResult<()>

fn extra_verbose(&self) -> bool