Struct cargo::util::config::Config
[−]
[src]
pub struct Config { /* fields omitted */ }
Methods
impl Config
[src]
fn new(shell: MultiShell, cwd: PathBuf, homedir: PathBuf) -> Config
fn default() -> CargoResult<Config>
fn home(&self) -> &Filesystem
fn git_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 rustdoc(&self) -> CargoResult<&Path>
fn rustc(&self) -> CargoResult<&Rustc>
fn values(&self) -> CargoResult<&HashMap<String, ConfigValue>>
fn cwd(&self) -> &Path
fn target_dir(&self) -> CargoResult<Option<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)>>>>
key: &str)
-> CargoResult<Option<Value<Vec<(String, PathBuf)>>>>
fn get_list_or_split_string(&self,
key: &str)
-> CargoResult<Option<Value<Vec<String>>>>
key: &str)
-> CargoResult<Option<Value<Vec<String>>>>
fn get_table(&self,
key: &str)
-> CargoResult<Option<Value<HashMap<String, CV>>>>
key: &str)
-> CargoResult<Option<Value<HashMap<String, CV>>>>
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(&self,
verbose: u32,
quiet: Option<bool>,
color: &Option<String>,
frozen: bool,
locked: bool)
-> CargoResult<()>
verbose: u32,
quiet: Option<bool>,
color: &Option<String>,
frozen: bool,
locked: bool)
-> CargoResult<()>