Lines Matching refs:val
145 fn set_attr(&mut self, segment: Segment, attr: &str, val: &str) -> Result<(), ParseError> { in set_attr()
150 return self.service_part.set_attr(attr_type, val); in set_attr()
294 pub fn set_attr(&'_ mut self, attr: &ServiceUnitAttr, val: &str) -> Result<(), ParseError> { in set_attr()
296 ServiceUnitAttr::Type => match val { in set_attr()
308 self.remain_after_exit = UnitParseUtil::parse_boolean(val)? in set_attr()
311 self.exec_start = UnitParseUtil::parse_cmd_task(val)?[0].clone(); in set_attr()
315 .extend(UnitParseUtil::parse_cmd_task(val)?); in set_attr()
319 .extend(UnitParseUtil::parse_cmd_task(val)?); in set_attr()
322 self.exec_reload.extend(UnitParseUtil::parse_cmd_task(val)?); in set_attr()
326 .extend(UnitParseUtil::parse_cmd_task(val)?); in set_attr()
329 self.exec_stop.extend(UnitParseUtil::parse_cmd_task(val)?); in set_attr()
331 ServiceUnitAttr::RestartSec => self.restart_sec = UnitParseUtil::parse_sec(val)?, in set_attr()
332 ServiceUnitAttr::Restart => match val { in set_attr()
344 self.timeout_start_sec = UnitParseUtil::parse_sec(val)? in set_attr()
347 self.timeout_stop_sec = UnitParseUtil::parse_sec(val)? in set_attr()
350 self.environment.push(UnitParseUtil::parse_env(val)?); in set_attr()
353 if !UnitParseUtil::is_valid_file(val) { in set_attr()
357 .extend(UnitParseUtil::parse_environment_file(val)?); in set_attr()
360 self.nice = UnitParseUtil::parse_nice(val)?; in set_attr()
363 if !UnitParseUtil::is_dir(val) { in set_attr()
366 self.working_directory = String::from(val); in set_attr()
370 self.user = String::from(val); in set_attr()
374 self.group = String::from(val); in set_attr()
376 ServiceUnitAttr::MountFlags => match val { in set_attr()