Home
last modified time | relevance | path

Searched refs:ExitStatus (Results 1 – 5 of 5) sorted by relevance

/DragonReach/src/manager/
H A Dmod.rs7 use crate::executor::ExitStatus;
18 let mut exited_unit: Vec<(usize, ExitStatus)> = Vec::new(); in check_running_status()
26 ExitStatus::from_exit_code(status.code().unwrap_or(0)), in check_running_status()
34 exited_unit.push((*unit.0, ExitStatus::from_exit_code(!0))); in check_running_status()
/DragonReach/src/unit/service/
H A Dmod.rs5 use crate::executor::ExitStatus;
64 pub fn is_restart(&self, exit_status: &ExitStatus) -> bool { in is_restart()
70 (Self::OnSuccess, ExitStatus::Success) => { in is_restart()
73 (Self::OnAbnormal, ExitStatus::Abnormal) => { in is_restart()
76 (Self::OnAbort, ExitStatus::Abort) => { in is_restart()
79 (Self::OnFailure, ExitStatus::Failure) => { in is_restart()
82 (Self::OnWatchdog, ExitStatus::Watchdog) => { in is_restart()
179 fn after_exit(&mut self, exit_status: ExitStatus) { in after_exit() argument
/DragonReach/src/executor/
H A Dmod.rs12 pub enum ExitStatus { enum
20 impl ExitStatus { impl
74 unit.after_exit(ExitStatus::Failure); in exec()
/DragonReach/src/executor/service_executor/
H A Dmod.rs16 use super::{Executor, ExitStatus};
154 pub fn after_exit(service: &mut ServiceUnit, exit_status: ExitStatus) { in after_exit() argument
/DragonReach/src/unit/
H A Dmod.rs10 use crate::executor::ExitStatus;
90 fn after_exit(&mut self, _exit_status: ExitStatus) { in after_exit() argument