pub enum PcapError {
Parse(PcapParseError),
Read(PcapReadError),
Write(PcapWriteError),
Validation(PcapValidationError),
}Expand description
Convenience error type that wraps all errors that can occur while parsing, reading, writing, or validating a pcap file.
Variants§
Parse(PcapParseError)
Error while parsing pcap data.
Read(PcapReadError)
Error while reading pcap data from an I/O source.
Write(PcapWriteError)
Error while writing pcap data.
Validation(PcapValidationError)
Validation error for decoded or encoded pcap content.
Trait Implementations§
Source§impl Error for PcapError
impl Error for PcapError
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()
Source§impl From<PcapParseError> for PcapError
impl From<PcapParseError> for PcapError
Source§fn from(source: PcapParseError) -> Self
fn from(source: PcapParseError) -> Self
Converts to this type from the input type.
Source§impl From<PcapReadError> for PcapError
impl From<PcapReadError> for PcapError
Source§fn from(source: PcapReadError) -> Self
fn from(source: PcapReadError) -> Self
Converts to this type from the input type.
Source§impl From<PcapValidationError> for PcapError
impl From<PcapValidationError> for PcapError
Source§fn from(source: PcapValidationError) -> Self
fn from(source: PcapValidationError) -> Self
Converts to this type from the input type.
Source§impl From<PcapWriteError> for PcapError
impl From<PcapWriteError> for PcapError
Source§fn from(source: PcapWriteError) -> Self
fn from(source: PcapWriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PcapError
impl !UnwindSafe for PcapError
impl Forget for PcapError
impl Freeze for PcapError
impl Move for PcapError
impl Send for PcapError
impl Sync for PcapError
impl Unpin for PcapError
impl UnsafeUnpin for PcapError
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