Enum bgpkit_parser::error::ParserError
source · pub enum ParserError {
IoError(Error),
IoNotEnoughBytes(),
EofError(Error),
OneIoError(OneIoError),
EofExpected,
ParseError(String),
UnknownAttr(String),
DeprecatedAttr(String),
TruncatedMsg(String),
Unsupported(String),
FilterError(String),
}
Variants§
IoError(Error)
IoNotEnoughBytes()
EofError(Error)
OneIoError(OneIoError)
EofExpected
ParseError(String)
UnknownAttr(String)
DeprecatedAttr(String)
TruncatedMsg(String)
Unsupported(String)
FilterError(String)
Trait Implementations§
source§impl Debug for ParserError
impl Debug for ParserError
source§impl Display for ParserError
impl Display for ParserError
implement Display trait for Error which satistifies the std::error::Error trait’s requirement (must implement Display and Debug traits, Debug already derived)
source§impl Error for ParserError
impl Error for ParserError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for ParserError
impl From<Error> for ParserError
source§impl From<OneIoError> for ParserError
impl From<OneIoError> for ParserError
source§fn from(error: OneIoError) -> Self
fn from(error: OneIoError) -> Self
Converts to this type from the input type.
source§impl From<ParserError> for ParserBmpError
impl From<ParserError> for ParserBmpError
source§fn from(_: ParserError) -> Self
fn from(_: ParserError) -> Self
Converts to this type from the input type.
source§impl From<ParserError> for ParserErrorWithBytes
impl From<ParserError> for ParserErrorWithBytes
source§fn from(error: ParserError) -> Self
fn from(error: ParserError) -> Self
Converts to this type from the input type.