#[repr(C)]pub enum PcaptureError {
Show 15 variants
UnhandledChannelType,
UnableCreateChannel {
e: String,
},
IOError(Error),
SystemTimeError(SystemTimeError),
InterfaceNotFound {
name: String,
available_interface: String,
},
UnknownLinkType {
linktype: u32,
},
GetSystemInfoError,
UnknownBlockType {
blocktype: u32,
},
UnsupportedBlockType {
blockname: String,
},
IncompleteFilter {
msg: String,
},
ValueError {
parameter: String,
target: String,
e: String,
},
UnknownOperator {
op: String,
},
LibpcapError {
msg: String,
},
NulError(NulError),
SendError(SendError<bool>),
}Variants§
UnhandledChannelType
UnableCreateChannel
IOError(Error)
SystemTimeError(SystemTimeError)
InterfaceNotFound
UnknownLinkType
GetSystemInfoError
UnknownBlockType
UnsupportedBlockType
IncompleteFilter
ValueError
UnknownOperator
LibpcapError
NulError(NulError)
SendError(SendError<bool>)
Trait Implementations§
Source§impl Debug for PcaptureError
impl Debug for PcaptureError
Source§impl Display for PcaptureError
impl Display for PcaptureError
Source§impl Error for PcaptureError
impl Error for PcaptureError
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<Error> for PcaptureError
impl From<Error> for PcaptureError
Source§impl From<NulError> for PcaptureError
impl From<NulError> for PcaptureError
Source§impl From<SystemTimeError> for PcaptureError
impl From<SystemTimeError> for PcaptureError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PcaptureError
impl !RefUnwindSafe for PcaptureError
impl Send for PcaptureError
impl Sync for PcaptureError
impl Unpin for PcaptureError
impl !UnwindSafe for PcaptureError
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