#[repr(u32)]pub enum WinDivertShutdownMode {
Recv = 1,
Send = 2,
Both = 3,
}Expand description
WinDivert shutdown mode.
Variants§
Recv = 1
Stops new packets being queued for WinDivertRecv
Send = 2
Stops new packets being injected via WinDivertSend
Both = 3
Equivalent to WinDivertShutdownMode::Recv | WinDivertShutdownMode::Send
Trait Implementations§
Source§impl Clone for WinDivertShutdownMode
impl Clone for WinDivertShutdownMode
Source§fn clone(&self) -> WinDivertShutdownMode
fn clone(&self) -> WinDivertShutdownMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WinDivertShutdownMode
impl Debug for WinDivertShutdownMode
Source§impl From<WinDivertShutdownMode> for u32
impl From<WinDivertShutdownMode> for u32
Source§fn from(value: WinDivertShutdownMode) -> Self
fn from(value: WinDivertShutdownMode) -> Self
Converts to this type from the input type.
Source§impl TryFrom<u32> for WinDivertShutdownMode
impl TryFrom<u32> for WinDivertShutdownMode
impl Copy for WinDivertShutdownMode
Auto Trait Implementations§
impl Freeze for WinDivertShutdownMode
impl RefUnwindSafe for WinDivertShutdownMode
impl Send for WinDivertShutdownMode
impl Sync for WinDivertShutdownMode
impl Unpin for WinDivertShutdownMode
impl UnwindSafe for WinDivertShutdownMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more