Home
last modified time | relevance | path

Searched refs:patterns (Results 1 – 3 of 3) sorted by relevance

/DragonReach/src/systemctl/listener/
H A Dmod.rs24 pub(crate) patterns: Vec<Pattern>, field
29 fn new(op: CommandOperation, patterns: Vec<Pattern>, args: Option<Vec<String>>) -> Self { in new()
33 patterns: patterns, in new()
43 patterns: Vec::new(), in default()
/DragonReach/src/manager/ctl_manager/
H A Dmod.rs30 CommandOperation::ListUnits => Self::list_unit(cmd.patterns), in exec_ctl()
44 let mut patterns = cmd.patterns.clone(); in exec_ctl() localVariable
45 patterns.push(Pattern::State(UnitState::Active)); in exec_ctl()
46 Self::list_unit(patterns) in exec_ctl()
49 let mut patterns = cmd.patterns.clone(); in exec_ctl() localVariable
50 patterns.push(Pattern::State(UnitState::Failed)); in exec_ctl()
51 Self::list_unit(patterns) in exec_ctl()
197 pub fn filter_units(patterns: Vec<Pattern>) -> Result<Vec<Arc<Mutex<dyn Unit>>>, RuntimeError> { in filter_units()
206 for pat in patterns { in filter_units()
/DragonReach/src/systemctl/ctl_parser/
H A Dmod.rs322 ctl.patterns.push(Self::parse_pattern(&word[2..])?); in parse_ctl()