Struct ndisapi_rs::StaticFilterTable
source · #[repr(C, packed)]pub struct StaticFilterTable<const N: usize> {
pub table_size: u32,
pub padding: u32,
pub static_filters: [StaticFilter; N],
}
Expand description
This structure represents an array of static filter rules, each of which is defined by a StaticFilter
structure.
It is used to manage multiple filter rules for packet filtering in a table format.
- Rust equivalent to the _STATIC_FILTER_TABLE
Fields§
§table_size: u32
The number of elements in the static_filters array
padding: u32
Padding to ensure correct memory alignment
static_filters: [StaticFilter; N]
Array of static filter rules
Implementations§
Trait Implementations§
source§impl<const N: usize> Clone for StaticFilterTable<N>
impl<const N: usize> Clone for StaticFilterTable<N>
source§fn clone(&self) -> StaticFilterTable<N>
fn clone(&self) -> StaticFilterTable<N>
Returns a copy 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<const N: usize> Default for StaticFilterTable<N>
impl<const N: usize> Default for StaticFilterTable<N>
impl<const N: usize> Copy for StaticFilterTable<N>
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for StaticFilterTable<N>
impl<const N: usize> Send for StaticFilterTable<N>
impl<const N: usize> Sync for StaticFilterTable<N>
impl<const N: usize> Unpin for StaticFilterTable<N>
impl<const N: usize> UnwindSafe for StaticFilterTable<N>
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