[][src]Module neli::err

This is the module that contains the error types used in neli

There are four main types:

  • Nlmsgerr - an application error returned from netlink as a packet.
  • NlError - a general netlink error wrapping application errors, serialization and deserialization errors, and other errors that occur in neli.
  • DeError - error while deserializing
  • SerError - error while serializing

Design decisions

All errors implement std::error::Error in an attempt to allow them to be used in conjunction with Result for easier error management even at the protocol error level.

Structs

Nlmsgerr

Struct representing netlink packets containing errors

NlmsghdrErr

An Nlmsghdr header with no payload returned as part of errors.

Enums

DeError

Deserialization error

NlError

General netlink error

SerError

Serialization error

WrappedError

An error to wrap all system level errors in a single, higher level error.