Searched refs:Pattern (Results 1 – 3 of 3) sorted by relevance
/DragonReach/src/systemctl/ctl_parser/ |
H A D | mod.rs | 78 pub enum Pattern { enum 115 impl ToString for Pattern { implementation 118 Pattern::Help => "help".to_string(), in to_string() 119 Pattern::Version => "version".to_string(), in to_string() 120 Pattern::System => "system".to_string(), in to_string() 121 Pattern::Host(s) => format!("{}={}", "host".to_string(), s), in to_string() 122 Pattern::Machine(s) => format!("{}={}", "machine".to_string(), s), in to_string() 123 Pattern::Type(t) => format!("{}={:?}", "type".to_string(), t), in to_string() 124 Pattern::State(s) => format!("{}={:?}", "state".to_string(), s), in to_string() 125 Pattern::Property(s) => format!("{}={}", "property".to_string(), s), in to_string() [all …]
|
/DragonReach/src/manager/ctl_manager/ |
H A D | mod.rs | 10 use crate::systemctl::ctl_parser::{CommandOperation, Pattern}; 45 patterns.push(Pattern::State(UnitState::Active)); in exec_ctl() 50 patterns.push(Pattern::State(UnitState::Failed)); in exec_ctl() 106 pub fn list_unit(pattern: Vec<Pattern>) -> Result<(), RuntimeError> { in list_unit() 197 pub fn filter_units(patterns: Vec<Pattern>) -> Result<Vec<Arc<Mutex<dyn Unit>>>, RuntimeError> { in filter_units() 208 Pattern::Type(t) => { in filter_units() 214 Pattern::State(s) => { in filter_units() 220 Pattern::None => {} in filter_units()
|
/DragonReach/src/systemctl/listener/ |
H A D | mod.rs | 11 use super::ctl_parser::{CommandOperation, CtlParser, Pattern}; 24 pub(crate) patterns: Vec<Pattern>, 29 fn new(op: CommandOperation, patterns: Vec<Pattern>, args: Option<Vec<String>>) -> Self { in new() argument
|