Searched refs:patterns (Results 1 – 3 of 3) sorted by relevance
24 pub(crate) patterns: Vec<Pattern>, field29 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()
30 CommandOperation::ListUnits => Self::list_unit(cmd.patterns), in exec_ctl()44 let mut patterns = cmd.patterns.clone(); in exec_ctl() localVariable45 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() localVariable50 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()
322 ctl.patterns.push(Self::parse_pattern(&word[2..])?); in parse_ctl()