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