pub struct Started { /* private fields */ }Expand description
A process that has been started and recorded.
Implementations§
Source§impl Started
impl Started
Sourcepub fn transcript(&self) -> &Path
pub fn transcript(&self) -> &Path
Where the child’s output is accumulating.
Sourcepub const fn started_at(&self) -> Timestamp
pub const fn started_at(&self) -> Timestamp
When the run began.
Sourcepub fn try_wait(&mut self) -> Result<Option<ExitStatus>, SpawnError>
pub fn try_wait(&mut self) -> Result<Option<ExitStatus>, SpawnError>
Whether the child has exited, without blocking.
§Errors
Returns SpawnError::Io when the child cannot be checked.
Sourcepub fn wait_after_kill(&mut self) -> Result<ExitStatus, SpawnError>
pub fn wait_after_kill(&mut self) -> Result<ExitStatus, SpawnError>
Reaps a child that has been killed, so it does not linger as a zombie.
§Errors
Returns SpawnError::Io when the child cannot be waited on.
Sourcepub fn into_finished(self, status: ExitStatus) -> Finished
pub fn into_finished(self, status: ExitStatus) -> Finished
Turns a finished child into the record of how it ended.
Sourcepub fn wait(self) -> Result<Finished, SpawnError>
pub fn wait(self) -> Result<Finished, SpawnError>
Waits for the child and reports how it ended.
§Errors
Returns SpawnError::Io when the child cannot be waited on.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Started
impl RefUnwindSafe for Started
impl Send for Started
impl Sync for Started
impl Unpin for Started
impl UnsafeUnpin for Started
impl UnwindSafe for Started
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