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>),
MacAdressParse,
UnexpectedPluginType(Box<str>),
UnexpectedLevel(Box<str>),
MissingPluginOutput,
}
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>)
MacAdressParse
UnexpectedPluginType(Box<str>)
UnexpectedLevel(Box<str>)
MissingPluginOutput
Trait Implementations§
Source§impl Clone for FormatError
impl Clone for FormatError
Source§fn clone(&self) -> FormatError
fn clone(&self) -> FormatError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FormatError
impl Debug for FormatError
Source§impl Display for FormatError
impl Display for FormatError
Source§impl Error for FormatError
impl Error for FormatError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AddrParseError> for FormatError
impl From<AddrParseError> for FormatError
Source§fn from(err: AddrParseError) -> Self
fn from(err: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for FormatError
impl From<Error> for FormatError
Source§impl From<Error> for FormatError
impl From<Error> for FormatError
Source§impl From<ParseBoolError> for FormatError
impl From<ParseBoolError> for FormatError
Source§fn from(err: ParseBoolError) -> Self
fn from(err: ParseBoolError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for FormatError
impl From<ParseIntError> for FormatError
Source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FormatError
impl !RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl !UnwindSafe for FormatError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more