pub enum ParserError {
Show 15 variants
IoError(Error),
EofError(Error),
OneIoError(OneIoError),
EofExpected,
ParseError(String),
TruncatedMsg(String),
Unsupported(String),
OversizedRecord {
length: u32,
},
FilterError(String),
InvalidLabeledNlriLength,
TruncatedLabeledNlri,
TruncatedPrefix,
MaxLabelStackDepthExceeded,
PeerMaxLabelsExceeded,
InvalidPrefix,
}Variants§
IoError(Error)
EofError(Error)
OneIoError(OneIoError)
EofExpected
ParseError(String)
TruncatedMsg(String)
Unsupported(String)
OversizedRecord
An MRT common header declared a body over the 16 MiB limit. The length is untrusted, so the reader is left past the header with no record boundary to resume from, and the iterators stop instead of reading the body as headers.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
oneio only.Source§fn from(error: OneIoError) -> Self
fn from(error: OneIoError) -> Self
Source§impl From<ParserError> for ParserErrorWithBytes
impl From<ParserError> for ParserErrorWithBytes
Source§fn from(error: ParserError) -> Self
fn from(error: ParserError) -> Self
Source§impl From<ParserError> for ParserBmpError
impl From<ParserError> for ParserBmpError
Source§fn from(e: ParserError) -> Self
fn from(e: ParserError) -> Self
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
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
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
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
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
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
Auto Trait Implementations§
impl !RefUnwindSafe for ParserError
impl !UnwindSafe for ParserError
impl Freeze for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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