Enum radius::core::packet::PacketError [−][src]
pub enum PacketError { InsufficientPacketPayloadLengthError(usize, usize), InsufficientHeaderDefinedPacketLengthError(usize, usize), HeaderDefinedPacketLengthExceedsMaximumLimitError(usize, usize), DecodingError(String), EncodingError(String), UnknownCodeError(String), }
Variants
An error indicates the entire length of the given packet has insufficient length.
An error indicates the length that is instructed by a header is insufficient.
An error indicates the length that is instructed by a header exceeds the maximum length of the RADIUS packet.
DecodingError(String)
An error that is raised when an error has been occurred on decoding bytes for a packet.
EncodingError(String)
An error that is raised when an error has been occurred on encoding a packet into bytes.
UnknownCodeError(String)
An error that is raised when it received unknown packet type code of RADIUS.
Trait Implementations
impl Debug for PacketError
[src]
impl Debug for PacketError
[src]impl Display for PacketError
[src]
impl Display for PacketError
[src]impl Error for PacketError
[src]
impl Error for PacketError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[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 PartialEq<PacketError> for PacketError
[src]
impl PartialEq<PacketError> for PacketError
[src]fn eq(&self, other: &PacketError) -> bool
[src]
fn eq(&self, other: &PacketError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &PacketError) -> bool
[src]
fn ne(&self, other: &PacketError) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for PacketError
[src]
Auto Trait Implementations
impl RefUnwindSafe for PacketError
impl Send for PacketError
impl Sync for PacketError
impl Unpin for PacketError
impl UnwindSafe for PacketError
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>,