Home
last modified time | relevance | path

Searched refs:val (Results 1 – 5 of 5) sorted by relevance

/DragonReach/src/parse/parse_util/
H A Dmod.rs57 Ok(val) => val, in parse_pid()
87 Ok(val) => val, in parse_mode()
111 Ok(val) => val, in parse_ifindex()
136 Ok(val) => val, in parse_mtu()
185 Ok(val) => val, in parse_size()
199 Some(val) => *val, in parse_size()
206 Some(val) => *val, in parse_size()
227 Ok(val) => val, in parse_sector_size()
254 Some(val) => val, in parse_range()
259 Ok(val) => val, in parse_range()
[all …]
/DragonReach/src/unit/timer/
H A Dmod.rs120 fn set_attr(&mut self, segment: Segment, attr: &str, val: &str) -> Result<(), ParseError> { in set_attr()
126 return self.timer_part.set_attr(attr_type, val); in set_attr()
260 for val in &mut self.timer_part.value { in change_stage()
261 match val.attr { in change_stage()
263 val.disabled = false; in change_stage()
265 val.next_elapse = Some(Instant::now() + val.val); in change_stage()
269 val.disabled = false; in change_stage()
271 val.next_elapse = Some(Instant::now() + val.val); in change_stage()
384 let val = &mut self.value[index]; in update_next_trigger() localVariable
385 match val.attr { in update_next_trigger()
[all …]
/DragonReach/src/unit/service/
H A Dmod.rs145 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()
[all …]
/DragonReach/src/unit/
H A Dmod.rs53 fn set_attr(&mut self, segment: Segment, attr: &str, val: &str) -> Result<(), ParseError>; in set_attr()
260 val: &str, in set_unit_part_attr()
262 return self.unit_part.set_attr(attr_type, val); in set_unit_part_attr()
268 val: &str, in set_install_part_attr()
270 return self.install_part.set_attr(attr_type, val); in set_install_part_attr()
375 pub fn set_attr(&mut self, attr: &BaseUnitAttr, val: &str) -> Result<(), ParseError> { in set_attr()
384 BaseUnitAttr::Description => self.description = String::from(val), in set_attr()
386 self.documentation.extend(UnitParseUtil::parse_url(val)?) in set_attr()
389 let units = val.split_whitespace().collect::<Vec<&str>>(); in set_attr()
397 let units = val.split_whitespace().collect::<Vec<&str>>(); in set_attr()
[all …]
/DragonReach/src/systemctl/ctl_parser/
H A Dmod.rs357 Ok(val) => Pattern::Lines(val), in parse_pattern()
375 Some(val) => val.clone(), in parse_pattern()