Enum radius_rust::protocol::error::RadiusError
source · [−]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,
},
}Expand description
Represents all errors generated by this library
Variants
ValidationError
Fields
error: StringError definition received from crate
Error happens, when Radius Packet fails validation
MalformedPacketError
Fields
error: StringError definition received from crate
Error happens, when packet has been badly constructed or got corrupted
MalformedAttributeError
Fields
error: StringError definition received from crate
Error happens, when attribute has been badly constructed or got corrupted
MalformedIpAddrError
Fields
error: StringError definition received from crate
Error happens, when IPv6 Address was badly added to Radius Packet or got corrupted
SocketConnectionError(Error)
Error happens, when there is some sort of connection error between sockets, or socket cannot bind to the given hostname/port
SocketInvalidConnectionError
Fields
error: StringError definition received from crate
Error won’t happen, but represents the case when socket gets message from unknwon source
SocketAddrParseError(AddrParseError)
Error happens, when socket cannot parse given hostname/port
MalformedDictionaryError
Fields
error: ErrorError definition received from crate
Error happens, when dictionary file cannot be parsed
UnsupportedTypeCodeError
Fields
error: StringError definition received from crate
Error happens, when wrong RADIUS Code is supplied
Trait Implementations
sourceimpl Debug for RadiusError
impl Debug for RadiusError
sourceimpl Display for RadiusError
impl Display for RadiusError
sourceimpl Error for RadiusError
impl Error for RadiusError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<AddrParseError> for RadiusError
impl From<AddrParseError> for RadiusError
sourcefn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more