pub struct RunEnv {
pub cwd: PathBuf,
pub home: PathBuf,
pub var: VarLookup,
pub package: PathBuf,
}Expand description
The process environment and locations a session sees.
Fields§
§cwd: PathBuf§home: PathBuf§var: VarLookup§package: PathBufThe package files (cli::assets): the embedded files installed under <agent dir>/runtime/<version>-<hash>/,
or a live checkout in dev builds (ULTRON_DEV_ASSETS); the CLI makes them ready before a session reads them.
Implementations§
Source§impl RunEnv
impl RunEnv
pub fn agent_dir(&self) -> PathBuf
Sourcepub fn package_file(&self, relative: &str) -> PathBuf
pub fn package_file(&self, relative: &str) -> PathBuf
A file of the package (getPackageDir()-relative).
pub fn skills(&self) -> PathBuf
pub fn runtime(&self) -> PathBuf
pub fn flag_off(&self, name: &str) -> bool
pub fn process(cwd: PathBuf, package: PathBuf) -> RunEnv
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RunEnv
impl !UnwindSafe for RunEnv
impl Forget for RunEnv
impl Freeze for RunEnv
impl Move for RunEnv
impl Send for RunEnv
impl Sync for RunEnv
impl Unpin for RunEnv
impl UnsafeUnpin for RunEnv
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more