Home
last modified time | relevance | path

Searched refs:to_string (Results 1 – 12 of 12) sorted by relevance

/DragonReach/src/systemctl/ctl_parser/
H A Dmod.rs116 fn to_string(&self) -> String { in to_string() method
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()
126 Pattern::All => "all".to_string(), in to_string()
[all …]
/DragonReach/src/unit/
H A Dmod.rs124 fn to_string(&self) -> String { in to_string() method
126 UnitState::Active => "active".to_string(), in to_string()
127 UnitState::Inactive => "inactive".to_string(), in to_string()
128 UnitState::Activating => "activeting".to_string(), in to_string()
129 UnitState::Deactivating => "deactivating".to_string(), in to_string()
130 UnitState::Failed => "failed".to_string(), in to_string()
131 UnitState::Reloading => "reloading".to_string(), in to_string()
132 UnitState::Maintenance => "maintenance".to_string(), in to_string()
158 fn to_string(&self) -> String { in to_string() method
160 UnitSubState::Running => "running".to_string(), in to_string()
[all …]
/DragonReach/src/parse/
H A Dmod.rs191 let mut realpath = path.to_string(); in get_reader()
193 realpath = format!("{}{}", DRAGON_REACH_UNIT_DIR, &path).to_string(); in get_reader()
201 return Err(ParseError::new(ParseErrorType::EFILE, path.to_string(), 0)); in get_reader()
206 return Err(ParseError::new(ParseErrorType::EFILE, path.to_string(), 0)); in get_reader()
209 return Err(ParseError::new(ParseErrorType::EFILE, path.to_string(), 0)); in get_reader()
215 return Err(ParseError::new(ParseErrorType::EFILE, path.to_string(), 0)); in get_reader()
227 _ => Err(ParseError::new(ParseErrorType::EFILE, path.to_string(), 0)), in from_path()
297 path.to_string(), in parse()
322 path.to_string(), in parse()
333 path.to_string(), in parse()
[all …]
/DragonReach/src/parse/graph/
H A Dmod.rs41 value: value.to_string(), in add_node()
45 self.value.push(value.to_string()); in add_node()
81 "".to_string(), in topological_sort()
181 if dependencies.contains(&dependency.to_string()) { in get_node_num()
186 dependencies.push(dependency.to_string()); in get_node_num()
/DragonReach/src/unit/service/
H A Dmod.rs186 cmd.dir = part.working_directory.to_string(); in init()
189 part.exec_start.dir = part.working_directory.to_string(); in init()
192 cmd.dir = part.working_directory.to_string(); in init()
196 cmd.dir = part.working_directory.to_string(); in init()
200 cmd.dir = part.working_directory.to_string(); in init()
204 cmd.dir = part.working_directory.to_string(); in init()
/DragonReach/src/parse/parse_service/
H A Dmod.rs19 let mut graph = Graph::construct_graph(path.to_string())?; in parse()
/DragonReach/src/parse/parse_timer/
H A Dmod.rs19 let mut graph = Graph::construct_graph(path.to_string())?; in parse()
/DragonReach/src/parse/parse_target/
H A Dmod.rs19 let mut graph = Graph::construct_graph(path.to_string())?; in parse()
/DragonReach/src/parse/parse_util/
H A Dmod.rs213 Ok(integer * factor + (fraction * factor) / (10u64.pow(fraction.to_string().len() as u32))) in parse_size()
440 return Err(ParseError::new(ParseErrorType::EFILE, path.to_string(), 0)); in parse_unit_no_type()
446 return Err(ParseError::new(ParseErrorType::EFILE, path.to_string(), 0)); in parse_unit_no_type()
458 return Err(ParseError::new(ParseErrorType::EFILE, path.to_string(), 0)); in parse_unit_no_type()
468 return Err(ParseError::new(ParseErrorType::EINVAL, "".to_string(), 0)); in parse_env()
471 return Ok((s[0].to_string(), s[1].to_string())); in parse_env()
671 ret += integer * factor + (frac * factor) / (10u64.pow(frac.to_string().len() as u32)); in parse_sec()
/DragonReach/src/error/parse_error/
H A Dmod.rs36 self.1 = path.to_string(); in set_file()
/DragonReach/src/
H A Dmain.rs32 let filename = entry.file_name().to_str().unwrap().to_string(); in main()
/DragonReach/src/manager/ctl_manager/
H A Dmod.rs109 let mut res = "UNIT\t\t\t\tLOAD\t\tACTIVE\t\tSUB\t\tDESCRIPTION".to_string(); in list_unit()