#[repr(u32)]pub enum WinDivertParam {
QueueLength = 0,
QueueTime = 1,
QueueSize = 2,
VersionMajor = 3,
VersionMinor = 4,
}Expand description
WinDivert parameter enum.
Used to specify the parameter in WinDivertGetParam() and WinDivertSetParam().
Variants§
QueueLength = 0
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 = 1
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 = 2
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 = 3
Obtains the major version of the driver.
VersionMinor = 4
Obtains the minor version of the driver.
Trait Implementations§
Source§impl Clone for WinDivertParam
impl Clone for WinDivertParam
Source§fn clone(&self) -> WinDivertParam
fn clone(&self) -> WinDivertParam
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more