Module etherparse::err

source ·
Expand description

Module containing error types that can be triggered.

Modules§

Structs§

  • Error when different lengths are conflicting with each other (e.g. not enough data in a slice to decode a header).
  • Error when not enough space is available in a slice to write a packet or header to it.
  • Error if a value exceeds the maximum allowed value.

Enums§

  • Type aggregating errors that can be caused by decoding from a slice. This type can be used as a “catch all” type for errors caused by from_slice functions as all errors from these functions can be converted into this type.
  • Layers on which an error can occur.
  • Type aggregating errors that can be caused by reading. This type can be used as a “catch all” type for errors caused by from_slice or read functions as all errors from these functions can be converted into this type.
  • Types of values that have a limited allowed value range and can cause an crate::err::ValueTooBigError.