Enum windivert_sys::WinDivertLayer
source · #[repr(u32)]
pub enum WinDivertLayer {
Network,
Forward,
Flow,
Socket,
Reflect,
}Expand description
WinDivert layer to initialize the handle.
WinDivert supports several layers for diverting or capturing network packets/events. Each layer has its own capabilities, such as the ability to block events or to inject new events, etc. The list of supported WinDivert layers is summarized below:
| Layer | Block? | Inject? | Data? | PID? | Description |
|---|---|---|---|---|---|
Network | ✔ | ✔ | ✔ | Network packets to/from the local machine. | |
Forward | ✔ | ✔ | ✔ | Network packets passing through the local machine. | |
Flow | ✔ | Network flow established/deleted events. | |||
Socket | ✔ | ✔ | Socket operation events. | ||
Reflect | ✔ | ✔ | WinDivert handle events. |
Variants§
Network
Network packets to/from the local machine.
Forward
Network packets passing through the local machine.
Flow
Network flow established/deleted events.
Socket
Socket operation events
Reflect
WinDivert handle events.
Trait Implementations§
source§impl Clone for WinDivertLayer
impl Clone for WinDivertLayer
source§fn clone(&self) -> WinDivertLayer
fn clone(&self) -> WinDivertLayer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WinDivertLayer
impl Debug for WinDivertLayer
source§impl From<WinDivertLayer> for u32
impl From<WinDivertLayer> for u32
source§fn from(value: WinDivertLayer) -> Self
fn from(value: WinDivertLayer) -> Self
Converts to this type from the input type.
source§impl From<WinDivertLayer> for u8
impl From<WinDivertLayer> for u8
source§fn from(value: WinDivertLayer) -> Self
fn from(value: WinDivertLayer) -> Self
Converts to this type from the input type.