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
type Error = WinDivertValueError
type Error = WinDivertValueError
The type returned in the event of a conversion error.
pub fn try_from(
value: u32
) -> Result<WinDivertParam, <WinDivertParam as TryFrom<u32>>::Error>
pub fn try_from(
value: u32
) -> Result<WinDivertParam, <WinDivertParam as TryFrom<u32>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for WinDivertParam
impl Send for WinDivertParam
impl Sync for WinDivertParam
impl Unpin for WinDivertParam
impl UnwindSafe for WinDivertParam
Blanket Implementations
Mutably borrows from an owned value. Read more