pub struct RunDir(/* private fields */);Expand description
A launcher’s own directory, outside every session, which lives while the launcher runs: the file that tells it the agent started, and the log of a sessionless run that failed, which outlives the launcher.
Implementations§
Source§impl RunDir
impl RunDir
Sourcepub fn from_env() -> Option<Self>
pub fn from_env() -> Option<Self>
The directory the launcher named in env::RUN, or None when
it is unset or empty.
Sourcepub fn ready(&self) -> PathBuf
pub fn ready(&self) -> PathBuf
Written by the agent once its build started, or exited on purpose before that; the launcher then keeps the build.
Sourcepub fn log(&self) -> PathBuf
pub fn log(&self) -> PathBuf
The text log of a sessionless run that failed, moved here from its session’s directory, which is removed.
Trait Implementations§
impl Eq for RunDir
impl StructuralPartialEq for RunDir
Auto Trait Implementations§
impl Freeze for RunDir
impl RefUnwindSafe for RunDir
impl Send for RunDir
impl Sync for RunDir
impl Unpin for RunDir
impl UnsafeUnpin for RunDir
impl UnwindSafe for RunDir
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