pub enum CaptureError {
MissingInterface,
MissingFifo,
Io(Error),
}
Expand description
Error during the --capture
phase of extcap.
Variants§
MissingInterface
The --extcap-interface
argument is required during the --capture
phase of extcap, but is not provided.
MissingFifo
Error caused by missing --fifo
argument from the command line. This is
expected to be passed by Wireshark when invoking an extcap for
capturing, and is needed to write the output of the packet capture to.
Io(Error)
IO Error while trying to open the given fifo. Since the fifo is necessary to send the captured packets to Wireshark, implementations are recommended to clean up and terminate the execution. Additionally, the error can be printed onto stderr. If Wireshark picks that up, it will show that to the user in an error dialog.
Trait Implementations§
Source§impl Debug for CaptureError
impl Debug for CaptureError
Source§impl Display for CaptureError
impl Display for CaptureError
Source§impl Error for CaptureError
impl Error for CaptureError
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<CaptureError> for ExtcapError
impl From<CaptureError> for ExtcapError
Source§fn from(source: CaptureError) -> Self
fn from(source: CaptureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CaptureError
impl !RefUnwindSafe for CaptureError
impl Send for CaptureError
impl Sync for CaptureError
impl Unpin for CaptureError
impl !UnwindSafe for CaptureError
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