Enum radius_rust::protocol::error::RadiusError
source · pub enum RadiusError {
ValidationError {
error: String,
},
MalformedPacketError {
error: String,
},
MalformedAttributeError {
error: String,
},
MalformedIpAddrError {
error: String,
},
MalformedIfIdError {
error: String,
},
SocketConnectionError(Error),
SocketInvalidConnectionError {
error: String,
},
SocketAddrParseError(AddrParseError),
MalformedDictionaryError {
error: Error,
},
UnsupportedTypeCodeError {
error: String,
},
}
Expand description
Represents all errors generated by this library
Variants§
ValidationError
Error happens, when Radius Packet fails validation
MalformedPacketError
Error happens, when packet has been badly constructed or got corrupted
MalformedAttributeError
Error happens, when attribute has been badly constructed or got corrupted
MalformedIpAddrError
Error happens, when IPv4/IPv6 Address was badly added to Radius Packet or got corrupted during packet transmission
MalformedIfIdError
Error happens, when Interface Id was badly added to Radius Packet or got corrupted during packet transmission
SocketConnectionError(Error)
Error happens, when there is some sort of connection error between sockets, or socket cannot bind to the given hostname/port
SocketInvalidConnectionError
Error won’t happen, but represents the case when socket gets message from unknwon source
SocketAddrParseError(AddrParseError)
Error happens, when socket cannot parse given hostname/port
MalformedDictionaryError
Error happens, when dictionary file cannot be parsed
UnsupportedTypeCodeError
Error happens, when wrong RADIUS Code is supplied