Home
last modified time | relevance | path

Searched refs:unit_base (Results 1 – 9 of 9) sorted by relevance

/DragonReach/src/unit/target/
H A Dmod.rs10 unit_base: BaseUnit, field
31 self.unit_base = base; in set_unit_base()
35 return self.unit_base.unit_type; in unit_type()
38 fn unit_base(&self) -> &BaseUnit { in unit_base() method
39 return &self.unit_base; in unit_base()
43 return self.unit_base.unit_id; in unit_id()
51 return &mut self.unit_base; in unit_base_mut()
/DragonReach/src/unit/timer/
H A Dmod.rs19 unit_base: BaseUnit, field
26 unit_base: Default::default(), in default()
36 self.unit_base.state = UnitState::Activating; in init()
92 self.unit_base.state = UnitState::Active; in init()
131 fn set_unit_base(&mut self, unit_base: BaseUnit) { in set_unit_base()
132 self.unit_base = unit_base; in set_unit_base()
136 self.unit_base.unit_type in unit_type()
139 fn unit_base(&self) -> &BaseUnit { in unit_base() method
140 &self.unit_base in unit_base()
144 &mut self.unit_base in unit_base_mut()
[all …]
/DragonReach/src/executor/
H A Dmod.rs68 for id in unit.unit_base().unit_part().on_failure() { in exec()
97 for u in unit.unit_base().unit_part().after() { in exec_()
107 for u in unit.unit_base().unit_part().requires() { in exec_()
117 for u in unit.unit_base().unit_part().binds_to() { in exec_()
127 for u in unit.unit_base().unit_part().wants() { in exec_()
/DragonReach/src/unit/service/
H A Dmod.rs14 unit_base: BaseUnit, field
23 unit_base: BaseUnit::default(), in default()
156 self.unit_base = base; in set_unit_base()
160 return self.unit_base.unit_type; in unit_type()
163 fn unit_base(&self) -> &BaseUnit { in unit_base() method
164 return &self.unit_base; in unit_base()
168 return self.unit_base.unit_id; in unit_id()
176 return &mut self.unit_base; in unit_base_mut()
224 pub fn unit_base(&self) -> &BaseUnit { in unit_base() method
225 return &self.unit_base; in unit_base()
/DragonReach/src/executor/service_executor/
H A Dmod.rs36 let conflicts = service.unit_base().unit_part().conflicts(); in exec_simple()
41 if *unit.unit_base().state() == UnitState::Active { in exec_simple()
44 unit.unit_base().unit_part().description() in exec_simple()
171 for bind in service.unit_base().unit_part().be_binded_by() { in after_exit()
194 let binds = service.unit_base().unit_part().be_binded_by(); in restart()
/DragonReach/src/executor/dep_graph/
H A Dmod.rs93 let after = unit.unit_base().unit_part().after(); in add_edges()
105 let after = (&unit).unit_base().unit_part().after(); in construct_graph()
/DragonReach/src/parse/
H A Dmod.rs256 let mut unit_base = BaseUnit::default(); in parse() localVariable
258 unit_base.set_unit_type(unit_type); in parse()
337 if let Err(e) = unit_base in parse()
354 if let Err(e) = unit_base in parse()
373 unit.set_unit_base(unit_base); in parse()
/DragonReach/src/manager/ctl_manager/
H A Dmod.rs112 res = format!("{}\n{}", res, unit.lock().unwrap().unit_base().unit_info()); in list_unit()
168 if is_try && *unit.unit_base().state() == UnitState::Active { in restart()
217 .filter(|x| *x.lock().unwrap().unit_base().state() == s) in filter_units()
/DragonReach/src/unit/
H A Dmod.rs60 fn set_unit_base(&mut self, unit_base: BaseUnit); in set_unit_base()
67 fn unit_base(&self) -> &BaseUnit; in unit_base() method