Enum bgpkit_parser::error::ParserError
source · pub enum ParserError {
IoError(Error),
EofError(Error),
OneIoError(OneIoError),
EofExpected,
ParseError(String),
TruncatedMsg(String),
Unsupported(String),
FilterError(String),
}
Variants§
IoError(Error)
EofError(Error)
OneIoError(OneIoError)
EofExpected
ParseError(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)>
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<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.
source§impl From<TryFromPrimitiveError<Afi>> for ParserError
impl From<TryFromPrimitiveError<Afi>> for ParserError
source§fn from(value: TryFromPrimitiveError<Afi>) -> Self
fn from(value: TryFromPrimitiveError<Afi>) -> Self
Converts to this type from the input type.
source§impl From<TryFromPrimitiveError<Bgp4MpType>> for ParserError
impl From<TryFromPrimitiveError<Bgp4MpType>> for ParserError
source§fn from(value: TryFromPrimitiveError<Bgp4MpType>) -> Self
fn from(value: TryFromPrimitiveError<Bgp4MpType>) -> Self
Converts to this type from the input type.
source§impl From<TryFromPrimitiveError<BgpState>> for ParserError
impl From<TryFromPrimitiveError<BgpState>> for ParserError
source§fn from(value: TryFromPrimitiveError<BgpState>) -> Self
fn from(value: TryFromPrimitiveError<BgpState>) -> Self
Converts to this type from the input type.
source§impl From<TryFromPrimitiveError<EntryType>> for ParserError
impl From<TryFromPrimitiveError<EntryType>> for ParserError
source§fn from(value: TryFromPrimitiveError<EntryType>) -> Self
fn from(value: TryFromPrimitiveError<EntryType>) -> Self
Converts to this type from the input type.
source§impl From<TryFromPrimitiveError<Safi>> for ParserError
impl From<TryFromPrimitiveError<Safi>> for ParserError
source§fn from(value: TryFromPrimitiveError<Safi>) -> Self
fn from(value: TryFromPrimitiveError<Safi>) -> Self
Converts to this type from the input type.
source§impl From<TryFromPrimitiveError<TableDumpV2Type>> for ParserError
impl From<TryFromPrimitiveError<TableDumpV2Type>> for ParserError
source§fn from(value: TryFromPrimitiveError<TableDumpV2Type>) -> Self
fn from(value: TryFromPrimitiveError<TableDumpV2Type>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParserError
impl !RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl !UnwindSafe for ParserError
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more