/DragonReach/src/parse/parse_util/ |
H A D | mod.rs | 33 pub fn parse_boolean(s: &str) -> Result<bool, ParseError> { in parse_boolean() argument 53 pub fn parse_pid(s: &str) -> Result<i32, ParseError> { in parse_pid() argument 84 pub fn parse_mode(s: &str) -> Result<u32, ParseError> { in parse_mode() argument 108 pub fn parse_ifindex(s: &str) -> Result<i32, ParseError> { in parse_ifindex() argument 133 pub fn parse_mtu(s: &str, family: i32) -> Result<u32, ParseError> { in parse_mtu() argument 171 pub fn parse_size(s: &str, base: SizeBase) -> Result<u64, ParseError> { in parse_size() argument 224 pub fn parse_sector_size(s: &str) -> Result<u64, ParseError> { in parse_sector_size() argument 252 pub fn parse_range(s: &str) -> Result<(u32, u32), ParseError> { in parse_range() argument 296 pub fn parse_fd(s: &str) -> Result<FileDescriptor, ParseError> { in parse_fd() argument 319 pub fn parse_nice(s: &str) -> Result<i8, ParseError> { in parse_nice() argument [all …]
|
/DragonReach/src/error/parse_error/ |
H A D | mod.rs | 28 pub struct ParseError(ParseErrorType, String, usize); struct 30 impl ParseError { impl 31 pub fn new(error_type: ParseErrorType, file_name: String, line_number: usize) -> ParseError { in new() 44 impl ErrorFormat for ParseError { implementation
|
/DragonReach/src/parse/parse_service/ |
H A D | mod.rs | 17 pub fn parse(path: &str) -> Result<usize, ParseError> { in parse() argument
|
/DragonReach/src/parse/parse_timer/ |
H A D | mod.rs | 17 pub fn parse(path: &str) -> Result<usize, ParseError> { in parse() argument
|
/DragonReach/src/parse/parse_target/ |
H A D | mod.rs | 17 pub fn parse(path: &str) -> Result<usize, ParseError> { in parse() argument
|
/DragonReach/src/parse/graph/ |
H A D | mod.rs | 53 pub fn topological_sort(&mut self) -> Result<Vec<String>, ParseError> { in topological_sort() argument 104 pub fn construct_graph(unit: String) -> Result<Graph, ParseError> { in construct_graph() argument 169 ) -> Result<(), ParseError> { in get_node_num() argument
|
/DragonReach/src/parse/ |
H A D | mod.rs | 189 pub fn get_reader(path: &str, unit_type: UnitType) -> Result<io::BufReader<File>, ParseError> { in get_reader() argument 221 pub fn from_path(path: &str) -> Result<usize, ParseError> { in from_path() argument 243 ) -> Result<usize, ParseError> { in parse() argument
|
/DragonReach/src/unit/ |
H A D | mod.rs | 53 fn set_attr(&mut self, segment: Segment, attr: &str, val: &str) -> Result<(), ParseError>; in set_attr() argument 261 ) -> Result<(), ParseError> { in set_unit_part_attr() argument 269 ) -> Result<(), ParseError> { in set_install_part_attr() argument 273 pub fn parse_and_set_attribute(&self) -> Result<(), ParseError> { in parse_and_set_attribute() argument 375 pub fn set_attr(&mut self, attr: &BaseUnitAttr, val: &str) -> Result<(), ParseError> { in set_attr() argument 535 pub fn set_attr(&mut self, attr: &InstallUnitAttr, val: &str) -> Result<(), ParseError> { in set_attr() argument
|
/DragonReach/src/unit/target/ |
H A D | mod.rs | 26 fn set_attr(&mut self, _segement: Segment, _attr: &str, _val: &str) -> Result<(), ParseError> { in set_attr() argument
|
/DragonReach/src/systemctl/ctl_parser/ |
H A D | mod.rs | 282 pub fn parse_ctl(s: &str) -> Result<Command, ParseError> { in parse_ctl() argument 337 fn parse_pattern(s: &str) -> Result<Pattern, ParseError> { in parse_pattern() argument
|
/DragonReach/src/unit/timer/ |
H A D | mod.rs | 120 fn set_attr(&mut self, segment: Segment, attr: &str, val: &str) -> Result<(), ParseError> { in set_attr() argument 432 pub fn set_attr(&mut self, attr: &TimerUnitAttr, val: &str) -> Result<(), ParseError> { in set_attr() argument
|
/DragonReach/src/unit/service/ |
H A D | mod.rs | 145 fn set_attr(&mut self, segment: Segment, attr: &str, val: &str) -> Result<(), ParseError> { in set_attr() argument 294 pub fn set_attr(&'_ mut self, attr: &ServiceUnitAttr, val: &str) -> Result<(), ParseError> { in set_attr() argument
|