added new status (HOS BY USER)
parent
62af29b9e0
commit
551223dd91
|
|
@ -93,7 +93,21 @@ pub enum ProcessState {
|
||||||
Holding,
|
Holding,
|
||||||
Stopped,
|
Stopped,
|
||||||
StoppedByCli,
|
StoppedByCli,
|
||||||
|
HoldingByCli,
|
||||||
}
|
}
|
||||||
|
impl std::fmt::Display for ProcessState {
|
||||||
|
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||||
|
return match self {
|
||||||
|
ProcessState::Pending => write!(f, "Running"),
|
||||||
|
ProcessState::Holding => write!(f, "Holding"),
|
||||||
|
ProcessState::Stopped => write!(f, "Stopped"),
|
||||||
|
ProcessState::StoppedByCli => write!(f, "Forcibly stopped"),
|
||||||
|
ProcessState::HoldingByCli => write!(f, "Forcibly holding"),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Events {
|
pub enum Events {
|
||||||
Positive(Arc<str>),
|
Positive(Arc<str>),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue