Lines Matching refs:unit
7 use crate::unit::timer::TimerUnitAttr;
8 use crate::unit::{BaseUnit, Unit};
12 unit::{service::ServiceUnitAttr, BaseUnitAttr, InstallUnitAttr, UnitType},
250 let unit = UnitManager::get_unit_with_name(&name).unwrap(); in parse() localVariable
251 let unit = unit.lock().unwrap(); in parse() localVariable
252 return Ok(unit.unit_id()); in parse()
255 let mut unit: T = T::default(); in parse() localVariable
363 if let Err(e) = unit.set_attr(segment, attr_str, val_str) { in parse()
373 unit.set_unit_base(unit_base); in parse()
374 unit.set_unit_name(name.clone()); in parse()
375 let id = unit.set_unit_id(); in parse()
376 unit.init(); in parse()
377 let dret: Arc<Mutex<dyn Unit>> = Arc::new(Mutex::new(unit)); in parse()