Enum windivert::WinDivertParam[][src]

#[repr(u32)]
pub enum WinDivertParam {
    QueueLength,
    QueueTime,
    QueueSize,
    VersionMajor,
    VersionMinor,
}
Expand description

WinDivert parameter enum.

Used to specify the parameter in WinDivertGetParam() and WinDivertSetParam().

Variants

QueueLength

WINDIVERT_PARAM_QUEUE_TIME parameter.

Sets the maximum length of the packet queue for WinDivertRecv().

The range of valid values goes from WINDIVERT_PARAM_QUEUE_LENGTH_MIN to WINDIVERT_PARAM_QUEUE_LENGTH_MAX, with a default value of WINDIVERT_PARAM_QUEUE_LENGTH_DEFAULT.

QueueTime

WINDIVERT_PARAM_QUEUE_LENGTH parameter.

Sets the minimum time, in milliseconds, a packet can be queued before it is automatically dropped. Packets cannot be queued indefinitely, and ideally, packets should be processed by the application as soon as is possible. Note that this sets the minimum time a packet can be queued before it can be dropped. The actual time may be exceed this value.

The range of valid values goes from WINDIVERT_PARAM_QUEUE_TIME_MIN to WINDIVERT_PARAM_QUEUE_TIME_MAX, with a fefault value of WINDIVERT_PARAM_QUEUE_TIME_DEFAULT.

QueueSize

WINDIVERT_PARAM_QUEUE_SIZE parameter.

Sets the maximum number of bytes that can be stored in the packet queue for WinDivertRecv().

The range of valid values goes from WINDIVERT_PARAM_QUEUE_SIZE_MIN to WINDIVERT_PARAM_QUEUE_SIZE_MAX, with a fefault value of WINDIVERT_PARAM_QUEUE_SIZE_DEFAULT.

VersionMajor

Obtains the major version of the driver.

VersionMinor

Obtains the minor version of the driver.

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

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

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.