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
Error happens, when Radius Packet fails validation
Fields of ValidationError
error: String
Error definition received from crate
Error happens, when packet has been badly constructed or got corrupted
Fields of MalformedPacketError
error: String
Error definition received from crate
Error happens, when attribute has been badly constructed or got corrupted
Fields of MalformedAttributeError
error: String
Error definition received from crate
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
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
Error happens, when dictionary file cannot be parsed
Fields of MalformedDictionaryError
error: Error
Error definition received from crate
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]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<AddrParseError> for RadiusError
[src]
fn from(source: AddrParseError) -> Self
[src]
impl From<Error> for RadiusError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RadiusError
impl Send for RadiusError
impl Sync for RadiusError
impl Unpin for RadiusError
impl !UnwindSafe for RadiusError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,