pub enum PcapReadError {
Io(Error),
Validation(PcapValidationError),
}Expand description
Errors that can occur while reading pcap data from an I/O source.
Variants§
Io(Error)
An I/O error occurred while reading the pcap.
Validation(PcapValidationError)
A field of the pcap file is invalid.
Trait Implementations§
Source§impl Debug for PcapReadError
impl Debug for PcapReadError
Source§impl Display for PcapReadError
impl Display for PcapReadError
Source§impl Error for PcapReadError
impl Error for PcapReadError
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<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 PcapReadError
impl From<PcapValidationError> for PcapReadError
Source§fn from(source: PcapValidationError) -> Self
fn from(source: PcapValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PcapReadError
impl !UnwindSafe for PcapReadError
impl Forget for PcapReadError
impl Freeze for PcapReadError
impl Move for PcapReadError
impl Send for PcapReadError
impl Sync for PcapReadError
impl Unpin for PcapReadError
impl UnsafeUnpin for PcapReadError
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