pub struct ProcessStatus {
pub pid: u32,
pub state: String,
pub running: bool,
pub exit_code: Option<u32>,
pub state_reason: Option<String>,
pub elapsed_time: String,
pub command: String,
pub log_path: String,
pub log_exists: bool,
pub log_tail: String,
}Expand description
Process status check result
Fields§
§pid: u32PID of the background process on the remote host.
state: StringStrict job state label: running, completed, failed, or state_lost.
running: boolWhether the process is currently running
exit_code: Option<u32>Exit code if process has completed
state_reason: Option<String>Why the job entered state_lost, if known.
elapsed_time: StringElapsed time in ps format (e.g., “12:34” or “2-12:34:56”)
command: StringOriginal command string tracked for this job.
log_path: StringAbsolute local log path on the MCP server.
log_exists: boolWhether the local log file currently exists.
log_tail: StringTail of the log file (if log_path provided)
Trait Implementations§
Source§impl Clone for ProcessStatus
impl Clone for ProcessStatus
Source§fn clone(&self) -> ProcessStatus
fn clone(&self) -> ProcessStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProcessStatus
impl RefUnwindSafe for ProcessStatus
impl Send for ProcessStatus
impl Sync for ProcessStatus
impl Unpin for ProcessStatus
impl UnsafeUnpin for ProcessStatus
impl UnwindSafe for ProcessStatus
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