Enum sawp::error::ErrorKind [−][src]
#[non_exhaustive] pub enum ErrorKind { Unimplemented, InvalidData, ParseError(Option<String>), Incomplete(Needed), }
Kinds of common errors used by the parsers
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Feature is not yet implemented.
Parser could not advance based on the data provided.
Usually indicates the provided input bytes cannot be parsed for the protocol.
Generic parsing error with optional message.
Incomplete(Needed)
Parser did not advance because more data is required to make a decision.
The caller should gather more data and try again.
Trait Implementations
impl From<ErrorKind> for ErrorKind
[src]
impl From<ErrorKind> for ErrorKind
[src]fn from(_kind: NomErrorKind) -> Self
[src]
fn from(_kind: NomErrorKind) -> Self
[src]Performs the conversion.