pub struct TaskInfo {
pub name: String,
pub pid: u32,
pub command: String,
pub cwd: Option<PathBuf>,
pub stdout_path: PathBuf,
pub stderr_path: PathBuf,
pub started_at: Instant,
}Expand description
Information about a managed task.
Fields§
§name: StringUnique name for this task.
pid: u32Process ID of the running task.
command: StringThe command that was executed.
cwd: Option<PathBuf>Working directory the command runs in.
stdout_path: PathBufPath to the stdout log file.
stderr_path: PathBufPath to the stderr log file.
started_at: InstantWhen the task was started.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskInfo
impl RefUnwindSafe for TaskInfo
impl Send for TaskInfo
impl Sync for TaskInfo
impl Unpin for TaskInfo
impl UnwindSafe for TaskInfo
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