pub enum ParsedPacketError {
PacketTooShort(u8),
InvalidDataLink(DataLinkError),
InvalidInternet(InternetError),
Transport(TransportError),
Application(ApplicationError),
}Variants§
PacketTooShort(u8)
InvalidDataLink(DataLinkError)
InvalidInternet(InternetError)
Transport(TransportError)
Application(ApplicationError)
Trait Implementations§
Source§impl Debug for ParsedPacketError
impl Debug for ParsedPacketError
Source§impl Display for ParsedPacketError
impl Display for ParsedPacketError
Source§impl Error for ParsedPacketError
impl Error for ParsedPacketError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ParsedPacketError
impl RefUnwindSafe for ParsedPacketError
impl Send for ParsedPacketError
impl Sync for ParsedPacketError
impl Unpin for ParsedPacketError
impl UnsafeUnpin for ParsedPacketError
impl UnwindSafe for ParsedPacketError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more