Home
last modified time | relevance | path

Searched defs:ParseError (Results 1 – 12 of 12) sorted by relevance

/DragonReach/src/parse/parse_util/
H A Dmod.rs33 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 Dmod.rs28 pub struct ParseError(ParseErrorType, String, usize); struct
30 impl ParseError { implementation
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 Dmod.rs17 pub fn parse(path: &str) -> Result<usize, ParseError> { in parse() argument
/DragonReach/src/parse/parse_timer/
H A Dmod.rs17 pub fn parse(path: &str) -> Result<usize, ParseError> { in parse() argument
/DragonReach/src/parse/parse_target/
H A Dmod.rs17 pub fn parse(path: &str) -> Result<usize, ParseError> { in parse() argument
/DragonReach/src/parse/graph/
H A Dmod.rs53 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 Dmod.rs189 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 Dmod.rs53 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 Dmod.rs26 fn set_attr(&mut self, _segement: Segment, _attr: &str, _val: &str) -> Result<(), ParseError> { in set_attr() argument
/DragonReach/src/systemctl/ctl_parser/
H A Dmod.rs282 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 Dmod.rs120 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 Dmod.rs145 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