#[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:

LayerBlock?Inject?Data?PID?Description
NetworkNetwork packets to/from the local machine.
ForwardNetwork packets passing through the local machine.
FlowNetwork flow established/deleted events.
SocketSocket operation events.
ReflectWinDivert 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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.