Enum radius_rust::protocol::error::RadiusError[][src]

pub enum RadiusError {
    ValidationError {
        error: String,
    },
    MalformedPacket {
        error: String,
    },
    MalformedAttribute {
        error: String,
    },
    MalformedIpAddr {
        error: String,
    },
    SocketConnectionError(Error),
    SocketInvalidConnection {
        error: String,
    },
    SocketAddrParseError(AddrParseError),
    MalformedDictionary {
        error: Error,
    },
    UnsupportedTypeCode {
        error: String,
    },
    MutexLockFailure {
        error: String,
    },
}

Represents all errors generated by this library

Variants

ValidationError

Error happens, when Radius Packet fails validation

Fields of ValidationError

error: String
MalformedPacket

Error happens, when packet has been badly constructed or got corrupted

Fields of MalformedPacket

error: String
MalformedAttribute

Error happens, when attribute has been badly constructed or got corrupted

Fields of MalformedAttribute

error: String
MalformedIpAddr

Error happens, when IPv6 Address was badly added to Radius Packet or got corrupted

Fields of MalformedIpAddr

error: String
SocketConnectionError(Error)

Error happens, when there is some sort of connection error between sockets, or socket cannot bind to the given hostname/port

SocketInvalidConnection

Error won't happen, but represents the case when socket gets message from unknwon source

Fields of SocketInvalidConnection

error: String
SocketAddrParseError(AddrParseError)

Error happens, when socket cannot parse given hostname/port

MalformedDictionary

Error happens, when dictionary file cannot be parsed

Fields of MalformedDictionary

error: Error
UnsupportedTypeCode

Error happens, when wrong RADIUS Code is supplied

Fields of UnsupportedTypeCode

error: String
MutexLockFailure

Error happens, when MutexClient cannot acquire the lock on socket_poll

Fields of MutexLockFailure

error: String

Trait Implementations

impl Debug for RadiusError[src]

impl Display for RadiusError[src]

impl Error for RadiusError[src]

impl From<AddrParseError> for RadiusError[src]

impl From<Error> for RadiusError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,