Expand description
This is the module that contains the error types used in neli
There are five main types:
Nlmsgerr
- an application error returned from netlink as a packet.RouterError
- errors returned byNlRouter
.SocketError
- errors returned byNlSocketHandle
.DeError
- error while deserializingSerError
- 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§
- MsgError
- Arbitrary error message.
- Nlmsgerr
- Struct representing netlink packets containing errors
- Nlmsgerr
Builder - Builder for
Nlmsgerr
. - Nlmsghdr
Ack - A special struct that represents the contents of an ACK returned at the application level.
- Nlmsghdr
AckBuilder - Builder for
NlmsghdrAck
. - Nlmsghdr
Err - A special struct that represents the contents of an error returned at the application level.
- Nlmsghdr
ErrBuilder - Builder for
NlmsghdrErr
.
Enums§
- Builder
Error - DeError
- Deserialization error
- Nlmsgerr
Builder Error - Error type for NlmsgerrBuilder
- Nlmsghdr
AckBuilder Error - Error type for NlmsghdrAckBuilder
- Nlmsghdr
ErrBuilder Error - Error type for NlmsghdrErrBuilder
- Router
Error - Sendable, clonable error that can be sent across channels in the router infrastructure to provide typed errors to all receivers indicating what went wrong.
- SerError
- Serialization error
- Socket
Error - General netlink error
- Utf8
String
orstr
UTF error.