Struct windivert_sys::ChecksumFlags[][src]

#[repr(transparent)]
pub struct ChecksumFlags(_);
Expand description

Wrapper helper struct around u64.

The type uses transparent representation to enforce using the provided methods to set the values of the flags used by WinDivertHelperCalcChecksums()

The different flag values are:

  • no_ip: Do not calculate the IPv4 checksum.
  • no_icmp: Do not calculate the ICMP checksum.
  • no_icmpv6: Do not calculate the ICMPv6 checksum.
  • no_tcp: Do not calculate the TCP checksum.
  • no_udp: Do not calculate the UDP checksum.

Implementations

Creates a new flag field with default zero value.

Sets no_ip flag

Unsets no_ip flag

Sets no_icmp flag

Unsets no_icmp flag

Sets no_icmpv6 flag

Unsets no_icmpv6 flag

Sets no_tcp flag

Unsets no_tcp flag

Sets no_udp flag

Unsets no_udp flag

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

Returns the “default value” for a type. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.