pub enum IoError {
Socket(Error),
Parse(&'static str),
Timeout,
InvalidMagic(u32),
UnsupportedVersion {
major: u16,
minor: u16,
},
TruncatedRecord {
expected: u32,
got: usize,
},
InterfaceNotFound(String),
PermissionDenied,
Bpf(&'static str),
Npcap(String),
UnsupportedPlatform,
}Expand description
I/O error type for wireforge-io.
Variants§
Socket(Error)
Underlying socket error.
Parse(&'static str)
Packet parse failure.
Timeout
Operation timed out.
InvalidMagic(u32)
Invalid pcap magic number.
UnsupportedVersion
Unsupported pcap/pcapng version.
TruncatedRecord
Truncated pcap record.
InterfaceNotFound(String)
Specified interface does not exist.
PermissionDenied
Permission denied (root or Administrator required).
Bpf(&'static str)
BPF-specific error (macOS/BSD).
Npcap(String)
NPcap-specific error (Windows).
UnsupportedPlatform
Operation not supported on the current platform.
Trait Implementations§
Source§impl Error for IoError
impl Error for IoError
1.30.0 · 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 !RefUnwindSafe for IoError
impl !UnwindSafe for IoError
impl Freeze for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl UnsafeUnpin for IoError
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