Enum windivert::WinDivertLayer [−][src]
#[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
type Error = WinDivertValueError
type Error = WinDivertValueError
The type returned in the event of a conversion error.
pub fn try_from(
value: u32
) -> Result<WinDivertLayer, <WinDivertLayer as TryFrom<u32>>::Error>
pub fn try_from(
value: u32
) -> Result<WinDivertLayer, <WinDivertLayer as TryFrom<u32>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for WinDivertLayer
impl Send for WinDivertLayer
impl Sync for WinDivertLayer
impl Unpin for WinDivertLayer
impl UnwindSafe for WinDivertLayer
Blanket Implementations
Mutably borrows from an owned value. Read more