Searched refs:unit_base (Results 1 – 9 of 9) sorted by relevance
10 unit_base: BaseUnit, field31 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() method39 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()
19 unit_base: BaseUnit, field26 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() method140 &self.unit_base in unit_base()144 &mut self.unit_base in unit_base_mut()[all …]
68 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_()
14 unit_base: BaseUnit, field23 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() method164 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() method225 return &self.unit_base; in unit_base()
36 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()
93 let after = unit.unit_base().unit_part().after(); in add_edges()105 let after = (&unit).unit_base().unit_part().after(); in construct_graph()
256 let mut unit_base = BaseUnit::default(); in parse() localVariable258 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()
112 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()
60 fn set_unit_base(&mut self, unit_base: BaseUnit); in set_unit_base()67 fn unit_base(&self) -> &BaseUnit; in unit_base() method