Trait ya_runtime_sdk::env::Env
source · pub trait Env<C: CommandCli> {
fn runtime_name(&self) -> Option<String> { ... }
fn data_directory(&self, runtime_name: &str) -> Result<PathBuf> { ... }
fn args(&self) -> Box<dyn Iterator<Item = String>> { ... }
fn cli(&mut self, project_name: &str, project_version: &str) -> Result<C> { ... }
}
Expand description
Runtime environment configuration
Provided Methods§
sourcefn runtime_name(&self) -> Option<String>
fn runtime_name(&self) -> Option<String>
Runtime name. Return None
for project name
sourcefn data_directory(&self, runtime_name: &str) -> Result<PathBuf>
fn data_directory(&self, runtime_name: &str) -> Result<PathBuf>
Directory to store the configuration, caches and state at