/rust/registry/src/index.crates.io-1949cf8c6b5b557f/ipsec-parser-0.7.0/src/error.rs
Line | Count | Source |
1 | | use nom::error::{ErrorKind, ParseError}; |
2 | | |
3 | | #[derive(Debug)] |
4 | | pub enum IPsecError { |
5 | | PayloadTooSmall, |
6 | | ExtraBytesInPayload, |
7 | | PayloadParseError, |
8 | | |
9 | | NomError(ErrorKind), |
10 | | } |
11 | | |
12 | | impl<I> ParseError<I> for IPsecError { |
13 | 0 | fn from_error_kind(_input: I, kind: ErrorKind) -> Self { |
14 | 0 | IPsecError::NomError(kind) |
15 | 0 | } Unexecuted instantiation: <ipsec_parser::error::IPsecError as nom::error::ParseError<_>>::from_error_kind Unexecuted instantiation: <ipsec_parser::error::IPsecError as nom::error::ParseError<_>>::from_error_kind |
16 | 0 | fn append(_input: I, _kind: ErrorKind, other: Self) -> Self { |
17 | 0 | other |
18 | 0 | } Unexecuted instantiation: <ipsec_parser::error::IPsecError as nom::error::ParseError<_>>::append Unexecuted instantiation: <ipsec_parser::error::IPsecError as nom::error::ParseError<_>>::append |
19 | | } |