pub struct Job {
pub id: usize,
pub pid: Pid,
pub pgid: Pid,
pub status: JobStatus,
pub command: String,
}Expand description
A single job tracked by the shell.
Fields§
§id: usizeJob number (1-indexed, displayed as [1], [2], etc.).
pid: PidProcess ID of the job leader.
pgid: PidProcess group ID.
status: JobStatusCurrent status.
command: StringThe command string (for display in jobs output).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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