#[non_exhaustive]pub enum ClientError {
Show 15 variants
IOError(Error),
ProtocolError {
data: Vec<u8>,
message: String,
},
AuthenticationError {
status: Status,
data: Vec<u8>,
user_message: String,
},
AuthorizationError {
status: Status,
user_message: String,
admin_message: String,
},
AccountingError {
status: Status,
user_message: String,
admin_message: String,
},
SerializeError(SerializeError),
InvalidPacketReceived(DeserializeError),
InvalidPacketData,
PasswordTooLong,
TooManyArguments,
InvalidArgument(InvalidArgument),
InvalidContext,
SequenceNumberMismatch {
expected: u8,
actual: u8,
},
SequenceNumberOverflow,
SystemTimeBeforeEpoch(SystemTimeError),
}Expand description
An error during a TACACS+ exchange.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
IOError(Error)
An error occurred when reading/writing a packet.
ProtocolError
TACACS+ protocol error, e.g. an authentication failure.
Fields
AuthenticationError
TACACS+ protocol error, as reported from a server during authentication.
Fields
AuthorizationError
Error when performing authorization.
Fields
AccountingError
Error when performing accounting.
Fields
SerializeError(SerializeError)
Error when serializing a packet to the wire.
InvalidPacketReceived(DeserializeError)
Invalid packet received from a server.
InvalidPacketData
Supplied data could not be encoded into a packet.
PasswordTooLong
The provided authentication password’s length exceeded the valid range (i.e., 0 to u8::MAX, less some other data stored in the same field).
TooManyArguments
Too many arguments were provided to fit in a packet.
InvalidArgument(InvalidArgument)
An invalid argument was provided.
InvalidContext
Context had an invalid field.
SequenceNumberMismatch
Sequence number in reply did not match what was expected.
Fields
SequenceNumberOverflow
Sequence number overflowed in session.
This termination is required per section 4.1 of RFC8907.
SystemTimeBeforeEpoch(SystemTimeError)
The system time was set before the Unix epoch, which is problematic for generating timestamps during accounting.