pub enum JobStatus {
Running,
Exited(Option<i32>),
Killed,
}Expand description
A background job’s run state, as observed by background_status/
background_list.
Variants§
Running
Still running (no exit observed yet).
Exited(Option<i32>)
Exited on its own; Some(code) when the platform reported one
(None covers a signal-terminated exit with no portable code, same
convention BashTool::execute already uses via
status.code().unwrap_or(-1) — this type keeps the Option
instead of collapsing it, so callers can tell “exit code 0” from
“no code available” if they care to).
Killed
Killed via background_kill (or reclaimed on agent drop) before it
exited on its own.
Implementations§
Trait Implementations§
impl Copy for JobStatus
impl Eq for JobStatus
impl StructuralPartialEq for JobStatus
Auto Trait Implementations§
impl Freeze for JobStatus
impl RefUnwindSafe for JobStatus
impl Send for JobStatus
impl Sync for JobStatus
impl Unpin for JobStatus
impl UnsafeUnpin for JobStatus
impl UnwindSafe for JobStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.