pub enum BgpParserError<I> {
ProtocolError(ProtocolErrorValues),
CustomText(&'static str),
Eyre(ErrReport),
Nom(I, ErrorKind),
}Variants§
ProtocolError(ProtocolErrorValues)
ProtocolError encapsulates protocol level semantics problems that require action from the caller of the parser.
CustomText(&'static str)
Eyre(ErrReport)
Nom(I, ErrorKind)
Trait Implementations§
Source§impl<I: Debug> Debug for BgpParserError<I>
impl<I: Debug> Debug for BgpParserError<I>
Source§impl<I> ParseError<I> for BgpParserError<I>
impl<I> ParseError<I> for BgpParserError<I>
Source§fn from_error_kind(input: I, kind: ErrorKind) -> Self
fn from_error_kind(input: I, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
Source§fn append(_: I, _: ErrorKind, other: Self) -> Self
fn append(_: I, _: ErrorKind, other: Self) -> Self
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
Auto Trait Implementations§
impl<I> !RefUnwindSafe for BgpParserError<I>
impl<I> !UnwindSafe for BgpParserError<I>
impl<I> Freeze for BgpParserError<I>where
I: Freeze,
impl<I> Send for BgpParserError<I>where
I: Send,
impl<I> Sync for BgpParserError<I>where
I: Sync,
impl<I> Unpin for BgpParserError<I>where
I: Unpin,
impl<I> UnsafeUnpin for BgpParserError<I>where
I: UnsafeUnpin,
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