Enum windivert::WinDivertParsedPacket[][src]

pub enum WinDivertParsedPacket<'a> {
    Network {
        addr: WinDivertNetworkData<'a>,
        data: Vec<u8>,
    },
    Flow {
        addr: WinDivertFlowData<'a>,
    },
    Socket {
        addr: WinDivertSocketData<'a>,
    },
    Reflect {
        addr: WinDivertReflectData<'a>,
        filter: Vec<u8>,
    },
}
Expand description

Parsed packet type.

Variants

Network

Fields

addr: WinDivertNetworkData<'a>

WinDivert data associated with the packet.

data: Vec<u8>

Raw captured data.

Packet type returned by handles using WinDivertLayer::Network.

Flow

Fields

addr: WinDivertFlowData<'a>

WinDivert data associated with the packet.

Packet type returned by handles using WinDivertLayer::Flow.

Socket

Fields

addr: WinDivertSocketData<'a>

WinDivert data associated with the packet.

Packet type returned by handles using WinDivertLayer::Socket.

Reflect

Fields

addr: WinDivertReflectData<'a>

WinDivert data associated with the packet.

filter: Vec<u8>

Object string representation of the filter used to open the handle.

Packet type returned by handles using WinDivertLayer::Reflect.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.