1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use thiserror::Error;
#[derive(Debug, Error)]
pub enum RadiusError {
#[error("Verification failed for incoming Radius packet")]
ValidationError { error: String },
#[error("Radius packet is malformed")]
MalformedPacket { error: String },
#[error("Radius packet attribute is malformed")]
MalformedAttribute { error: String },
#[error("Provided IPv6 address is malformed")]
MalformedIpAddr { error: String },
#[error(transparent)]
SocketConnectionError(#[from] std::io::Error),
#[error("Invalid socket connection")]
SocketInvalidConnection { error: String },
#[error(transparent)]
SocketAddrParseError(#[from] std::net::AddrParseError),
#[error("Dictionary is malformed or inaccessible")]
MalformedDictionary { error: std::io::Error },
#[error("Supplied RADIUS Code is not supported by this library")]
UnsupportedTypeCode { error: String },
#[error("MutexClient is not able to acquire the lock on socket_poll")]
MutexLockFailure { error: String }
}