pub enum FormatError {
Show 23 variants
MissingAttribute(&'static str),
MissingTag(&'static str),
RepeatedTag(&'static str),
UnexpectedFormat(&'static str),
UnexpectedNodeKind,
UnexpectedText(Box<str>),
UnexpectedXmlAttribute(Box<str>),
UnsupportedVersion,
ParseInt(ParseIntError),
Xml(Box<Error>),
Jiff(Error),
IpAddrParse(AddrParseError),
BoolParse(ParseBoolError),
UnexpectedNode(Box<str>),
UnexpectedPingMethod(Box<str>),
UnexpectedDeadHostReason(Box<str>),
UnexpectedPingTcpResponse(Box<str>),
UnexpectedPingFormat(Box<str>),
UnexpectedProtocol(Box<str>),
MacAddressParse,
UnexpectedPluginType(Box<str>),
UnexpectedLevel(Box<str>),
MissingPluginOutput,
}Expand description
Errors returned while parsing Nessus XML into typed structures.
Variants§
MissingAttribute(&'static str)
A required XML attribute was not present.
MissingTag(&'static str)
A required XML tag was not present.
RepeatedTag(&'static str)
A tag expected to appear once was repeated.
UnexpectedFormat(&'static str)
A value had an unexpected shape.
UnexpectedNodeKind
An XML node kind was not expected at this position.
UnexpectedText(Box<str>)
Non-empty text was found where no text content is allowed.
UnexpectedXmlAttribute(Box<str>)
An unknown XML attribute was encountered.
UnsupportedVersion
The root tag does not match NessusClientData_v2.
ParseInt(ParseIntError)
Failed to parse an integer value.
Xml(Box<Error>)
Failed to parse XML.
Jiff(Error)
Failed to parse date/time data via jiff.
IpAddrParse(AddrParseError)
Failed to parse an IP address.
BoolParse(ParseBoolError)
Failed to parse a boolean value.
UnexpectedNode(Box<str>)
An unexpected XML node/tag was encountered.
UnexpectedPingMethod(Box<str>)
A ping-method line in plugin output is not recognized.
UnexpectedDeadHostReason(Box<str>)
A dead-host reason in plugin output is not recognized.
UnexpectedPingTcpResponse(Box<str>)
A TCP reply suffix in plugin output is not recognized.
UnexpectedPingFormat(Box<str>)
Ping plugin output does not match any recognized format.
UnexpectedProtocol(Box<str>)
A protocol string was not one of tcp, udp, or icmp.
MacAddressParse
A MAC address could not be parsed from XX:XX:XX:XX:XX:XX.
UnexpectedPluginType(Box<str>)
A plugin type string/value was not recognized.
UnexpectedLevel(Box<str>)
A severity string/value was not recognized.
MissingPluginOutput
A plugin item required plugin_output but it was missing.
Trait Implementations§
Source§impl Clone for FormatError
impl Clone for FormatError
Source§fn clone(&self) -> FormatError
fn clone(&self) -> FormatError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more