pub enum NasooneError {
PcapError(Error),
InvalidState(String),
InvalidOutputPath(String),
UnsetCapture,
UnsetOutput,
InvalidTimeout,
CaptureOver,
}
Expand description
An error that can occur while using the library.
Variants§
PcapError(Error)
An error from the underlying pcap library.
InvalidState(String)
Invalid Nasoone state.
InvalidOutputPath(String)
The specified output path is not valid.
UnsetCapture
The capture type is not set.
UnsetOutput
The capture output file is not set.
InvalidTimeout
The timeout is not valid.
CaptureOver
The capture has finished by itself.
Trait Implementations§
Source§impl Debug for NasooneError
impl Debug for NasooneError
Source§impl Display for NasooneError
impl Display for NasooneError
Source§impl Error for NasooneError
impl Error for NasooneError
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 Freeze for NasooneError
impl RefUnwindSafe for NasooneError
impl Send for NasooneError
impl Sync for NasooneError
impl Unpin for NasooneError
impl UnwindSafe for NasooneError
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