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

pub enum RadiusError {
    ValidationError {
        error: String,
    },
    MalformedPacketError {
        error: String,
    },
    MalformedAttributeError {
        error: String,
    },
    MalformedIpAddrError {
        error: String,
    },
    SocketConnectionError(Error),
    SocketInvalidConnectionError {
        error: String,
    },
    SocketAddrParseError(AddrParseError),
    MalformedDictionaryError {
        error: Error,
    },
    UnsupportedTypeCodeError {
        error: String,
    },
}

Represents all errors generated by this library

Variants

ValidationError

Error happens, when Radius Packet fails validation

Fields of ValidationError

error: String

Error definition received from crate

MalformedPacketError

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

Fields of MalformedPacketError

error: String

Error definition received from crate

MalformedAttributeError

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

Fields of MalformedAttributeError

error: String

Error definition received from crate

MalformedIpAddrError

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

Fields of MalformedIpAddrError

error: String

Error definition received from crate

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

Fields of SocketInvalidConnectionError

error: String

Error definition received from crate

SocketAddrParseError(AddrParseError)

Error happens, when socket cannot parse given hostname/port

MalformedDictionaryError

Error happens, when dictionary file cannot be parsed

Fields of MalformedDictionaryError

error: Error

Error definition received from crate

UnsupportedTypeCodeError

Error happens, when wrong RADIUS Code is supplied

Fields of UnsupportedTypeCodeError

error: String

Error definition received from crate

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>,