Home
last modified time | relevance | path

Searched refs:Unit (Results 1 – 17 of 17) sorted by relevance

/DragonReach/parse_test/
H A Dtest_timer_unit.timer1 [Unit] section
7 Unit=test_timer_unit.service argument
H A Dshell.service1 [Unit] section
H A Dtest_timer_unit.service1 [Unit] section
H A Dtest2.service1 [Unit] section
H A Dtest1.service1 [Unit] section
H A Dtest.service1 [Unit] section
/DragonReach/src/manager/unit_manager/
H A Dmod.rs8 use crate::unit::Unit;
20 …pub(super) static ref ID_TO_UNIT_MAP: RwLock<HashMap<usize,Arc<Mutex<dyn Unit>>>> = RwLock::new(Ha…
70 pub fn get_unit_with_name(name: &str) -> Option<Arc<Mutex<dyn Unit>>> { in get_unit_with_name() argument
88 pub fn get_unit_with_id(id: &usize) -> Option<Arc<Mutex<dyn Unit>>> { in get_unit_with_id() argument
131 pub fn insert_unit_with_id(id: usize, unit: Arc<Mutex<dyn Unit>>) { in insert_unit_with_id() argument
144 pub fn pop_a_idle_service() -> Option<Arc<Mutex<dyn Unit>>> { in pop_a_idle_service()
/DragonReach/src/unit/target/
H A Dmod.rs1 use super::{BaseUnit, Unit};
14 impl Unit for TargetUnit {
/DragonReach/src/parse/
H A Dmod.rs8 use crate::unit::{BaseUnit, Unit};
33 Unit, enumerator
58 table.insert("[Unit]", Segment::Unit);
168 map.insert("Unit", TimerUnitAttr::Unit);
240 pub fn parse<T: Unit + Default + Clone + 'static>( in parse()
330 if segment != Segment::Unit { in parse()
377 let dret: Arc<Mutex<dyn Unit>> = Arc::new(Mutex::new(unit)); in parse()
/DragonReach/src/executor/dep_graph/
H A Dmod.rs6 unit::Unit,
99 pub fn construct_graph(unit: &Arc<Mutex<dyn Unit>>) -> DepGraph { in construct_graph()
/DragonReach/src/unit/timer/
H A Dmod.rs1 use super::{BaseUnit, Unit};
32 impl Unit for TimerUnit {
497 TimerUnitAttr::Unit => self.unit = UnitManager::get_id_with_path(val).unwrap(), in set_attr()
521 Unit, enumerator
/DragonReach/src/manager/ctl_manager/
H A Dmod.rs13 use crate::unit::Unit;
197 pub fn filter_units(patterns: Vec<Pattern>) -> Result<Vec<Arc<Mutex<dyn Unit>>>, RuntimeError> { in filter_units() argument
/DragonReach/src/unit/service/
H A Dmod.rs1 use super::{BaseUnit, Unit};
133 impl Unit for ServiceUnit {
/DragonReach/src/manager/timer_manager/
H A Dmod.rs7 error::runtime_error::RuntimeError, time::timer::Timer, unit::timer::TimerUnit, unit::Unit,
/DragonReach/src/executor/service_executor/
H A Dmod.rs12 Unit, UnitState,
/DragonReach/src/parse/parse_util/
H A Dmod.rs7 unit::{service::ServiceUnit, target::TargetUnit, timer::TimerUnit, Unit, UnitType, Url},
425 pub fn parse_unit<T: Unit>(path: &str) -> Result<usize, ParseError> { in parse_unit()
/DragonReach/src/unit/
H A Dmod.rs26 pub trait Unit: Sync + Send + Debug { interface