Struct windivert_sys::address::WINDIVERT_ADDRESS[][src]

#[repr(C)]pub struct WINDIVERT_ADDRESS {
    pub Timestamp: i64,
    pub union_field: WINDIVERT_ADDRESS_UNION_FIELD,
    // some fields omitted
}

Base data type returned by recv and required by send

Fields

Timestamp: i64

Timestamp indicating when the event occurred.

union_field: WINDIVERT_ADDRESS_UNION_FIELD

Union of the different data types associated with the possible layer values.

Implementations

impl WINDIVERT_ADDRESS[src]

pub fn Layer(&self) -> WinDivertLayer[src]

Getter for the handle layer

pub fn set_Layer(&mut self, val: WinDivertLayer)[src]

Setter for the handle layer

pub fn Event(&self) -> WinDivertEvent[src]

Getter for the handle event

pub fn set_Event(&mut self, val: u32)[src]

Setter for the handle event

pub fn Sniffed(&self) -> bool[src]

Set to true if the packet was sniffed (not blocked).

pub fn set_Sniffed(&mut self, val: bool)[src]

Sniffed flag setter.

pub fn Outbound(&self) -> bool[src]

Set to true for outbound packet events.

pub fn set_Outbound(&mut self, val: bool)[src]

Outbound flag setter.

pub fn Loopback(&self) -> bool[src]

Set to true for loopback packets.

pub fn set_Loopback(&mut self, val: bool)[src]

Loopback flag setter.

pub fn Impostor(&self) -> bool[src]

Set to true for "impostor" packets.

pub fn set_Impostor(&mut self, val: bool)[src]

Impostor flag setter.

pub fn IPv6(&self) -> bool[src]

Set to true for IPv6 packets.

pub fn set_IPv6(&mut self, val: bool)[src]

IPv6 flag setter.

pub fn IPChecksum(&self) -> bool[src]

Set to true if the IPv4 checksum is valid.

pub fn set_IPChecksum(&mut self, val: bool)[src]

IPv4 checksum flag setter.

pub fn TCPChecksum(&self) -> bool[src]

Set to true if the TCP checksum is valid.

pub fn set_TCPChecksum(&mut self, val: bool)[src]

TCP checksum flag setter.

pub fn UDPChecksum(&self) -> bool[src]

Set to true if the UDP checksum is valid.

pub fn set_UDPChecksum(&mut self, val: bool)[src]

UDP checksum flag setter.

Trait Implementations

impl Clone for WINDIVERT_ADDRESS[src]

impl Copy for WINDIVERT_ADDRESS[src]

impl Default for WINDIVERT_ADDRESS[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.