pub enum WinDivertRecvError {
InsufficientBuffer,
NoData,
}Expand description
Possible errors for WinDivertRecv()
Variants§
InsufficientBuffer
The captured packet is larger than the provided buffer.
NoData
The handle has been shutdown and the packet queue is empty.
Trait Implementations§
Source§impl Debug for WinDivertRecvError
impl Debug for WinDivertRecvError
Source§impl Display for WinDivertRecvError
impl Display for WinDivertRecvError
Source§impl Error for WinDivertRecvError
impl Error for WinDivertRecvError
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()
Source§impl From<WinDivertRecvError> for WinDivertError
impl From<WinDivertRecvError> for WinDivertError
Source§fn from(source: WinDivertRecvError) -> Self
fn from(source: WinDivertRecvError) -> Self
Converts to this type from the input type.
Source§impl TryFrom<Error> for WinDivertRecvError
impl TryFrom<Error> for WinDivertRecvError
Auto Trait Implementations§
impl Freeze for WinDivertRecvError
impl RefUnwindSafe for WinDivertRecvError
impl Send for WinDivertRecvError
impl Sync for WinDivertRecvError
impl Unpin for WinDivertRecvError
impl UnwindSafe for WinDivertRecvError
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