pub enum ParserError {
Show 14 variants
IoError(Error),
EofError(Error),
OneIoError(OneIoError),
EofExpected,
ParseError(String),
TruncatedMsg(String),
Unsupported(String),
FilterError(String),
InvalidLabeledNlriLength,
TruncatedLabeledNlri,
TruncatedPrefix,
MaxLabelStackDepthExceeded,
PeerMaxLabelsExceeded,
InvalidPrefix,
}Variants§
IoError(Error)
EofError(Error)
OneIoError(OneIoError)
EofExpected
ParseError(String)
TruncatedMsg(String)
Unsupported(String)
FilterError(String)
InvalidLabeledNlriLength
NLRI length field is inconsistent with content (total_bits < minimum required, or underflow in prefix calculation)
TruncatedLabeledNlri
Input ended before completing NLRI structure
TruncatedPrefix
Input ended in the middle of prefix data
MaxLabelStackDepthExceeded
Exceeded configured max_labels without finding Bottom-of-Stack bit
PeerMaxLabelsExceeded
Exceeded peer-advertised max labels (Multiple Labels Capability) Per RFC 8277 §2.1, this should be treated as a withdrawal
InvalidPrefix
Invalid prefix in NLRI
Trait Implementations§
Source§impl Debug for ParserError
impl Debug for ParserError
Source§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)
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
Available on crate feature oneio only.
impl From<OneIoError> for ParserError
Available on crate feature
oneio only.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(e: ParserError) -> Self
fn from(e: 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 UnsafeUnpin 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