Searched refs:UnitState (Results 1 – 6 of 6) sorted by relevance
/DragonReach/src/unit/ |
H A D | mod.rs | 113 pub enum UnitState { enum 123 impl ToString for UnitState { implementation 126 UnitState::Active => "active".to_string(), in to_string() 127 UnitState::Inactive => "inactive".to_string(), in to_string() 128 UnitState::Activating => "activeting".to_string(), in to_string() 129 UnitState::Deactivating => "deactivating".to_string(), in to_string() 130 UnitState::Failed => "failed".to_string(), in to_string() 131 UnitState::Reloading => "reloading".to_string(), in to_string() 132 UnitState::Maintenance => "maintenance".to_string(), in to_string() 225 state: UnitState, [all …]
|
/DragonReach/src/executor/ |
H A D | mod.rs | 7 unit::UnitState, 51 .set_state(UnitState::Activating); in exec() 60 .set_state(UnitState::Active); in exec() 73 unit.unit_base_mut().set_state(UnitState::Failed); in exec()
|
/DragonReach/src/unit/timer/ |
H A D | mod.rs | 10 use crate::unit::UnitState; 36 self.unit_base.state = UnitState::Activating; in init() 92 self.unit_base.state = UnitState::Active; in init() 177 self.unit_base.state = UnitState::Inactive; in _run() 192 self.unit_base.state = UnitState::Active; in _run() 196 self.unit_base.state = UnitState::Failed; in _run() 210 self.unit_base.state = UnitState::Inactive; in check() 212 if self.unit_base.state == UnitState::Inactive in check() 252 if self.unit_base.state == UnitState::Inactive { in enter_inactive()
|
/DragonReach/src/executor/service_executor/ |
H A D | mod.rs | 12 Unit, UnitState, 41 if *unit.unit_base().state() == UnitState::Active { in exec_simple() 73 service.unit_base_mut().set_state(UnitState::Active); in exec_simple() 188 service.unit_base_mut().set_state(UnitState::Inactive); in after_exit()
|
/DragonReach/src/manager/ctl_manager/ |
H A D | mod.rs | 14 use crate::unit::UnitState; 45 patterns.push(Pattern::State(UnitState::Active)); in exec_ctl() 50 patterns.push(Pattern::State(UnitState::Failed)); in exec_ctl() 168 if is_try && *unit.unit_base().state() == UnitState::Active { in restart()
|
/DragonReach/src/systemctl/ctl_parser/ |
H A D | mod.rs | 3 use crate::unit::{UnitState, UnitType}; 85 State(UnitState), 232 map.insert("state", Pattern::State(UnitState::Active));
|