pub enum PcapWriteError {
Io(Error),
FieldWriteFailed(&'static str, Error),
Validation(PcapValidationError),
}Expand description
Errors that can occur while writing pcap data.
Variants§
Io(Error)
An I/O error occurred while writing the pcap stream.
FieldWriteFailed(&'static str, Error)
An I/O error occurred while writing a field in the file.
§Fields
- 0: field that failed to be written
- 1: underlying I/O error
Validation(PcapValidationError)
A field of the pcap file is invalid.
Trait Implementations§
Source§impl Debug for PcapWriteError
impl Debug for PcapWriteError
Source§impl Display for PcapWriteError
impl Display for PcapWriteError
Source§impl Error for PcapWriteError
impl Error for PcapWriteError
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<PcapValidationError> for PcapWriteError
impl From<PcapValidationError> for PcapWriteError
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 PcapWriteError
impl !UnwindSafe for PcapWriteError
impl Forget for PcapWriteError
impl Freeze for PcapWriteError
impl Move for PcapWriteError
impl Send for PcapWriteError
impl Sync for PcapWriteError
impl Unpin for PcapWriteError
impl UnsafeUnpin for PcapWriteError
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