#[non_exhaustive]pub enum ErrorKind {
Eof,
InvalidRecord,
UnsupportedConfig,
UnsupportedData,
External,
}Expand description
A list specifying general categories of parse error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Eof
There was no more data in the ParseBuf but more is required in
in order to parse the record.
Should be returned by ParseBuf::chunk when there is no data left to
be returned.
InvalidRecord
A record was parsed, but it was invalid.
This is for validation errors that occur when parsing the record. Most
errors will result either leftover unparsed data or
Eof errors.
UnsupportedConfig
The ParseConfig had options that are not yet supported by this
library.
This is only emitted when the lack of support for said option would cause parsing to to return incorrect results.
UnsupportedData
The data type that was being parsed by this library contains data that is not yet supported by this library.
This is used when attempting to parse a perf_event_attr that has
fields from versions of the kernel that this crate does not support.
External
An external error, forwarded from the ParseBuf implementation.
This error will never be emitted by a parse method in this crate.