#[repr(C, packed(1))]pub struct DataLinkLayerFilter {
pub union_selector: u32,
pub data_link_layer: DataLinkLayerFilterUnion,
}Expand description
A Rust struct that represents a data link layer filter.
Rust equivalent for _DATA_LINK_LAYER_FILTER
This struct can be used to filter packets at the data link layer (e.g., Ethernet/802.3) by specifying the filter type in union_selector.
Fields§
§union_selector: u32§data_link_layer: DataLinkLayerFilterUnionImplementations§
Source§impl DataLinkLayerFilter
Creates a new DataLinkLayerFilter instance.
impl DataLinkLayerFilter
Creates a new DataLinkLayerFilter instance.
§Arguments
union_selector- Specifies the filter type (e.g., ETH_802_3 for Eth8023Filter).data_link_layer- Contains the actual data link layer filter information in a union format.
§Returns
- A new
DataLinkLayerFilterinstance.
pub fn new( union_selector: u32, data_link_layer: DataLinkLayerFilterUnion, ) -> Self
Trait Implementations§
Source§impl Clone for DataLinkLayerFilter
impl Clone for DataLinkLayerFilter
Source§fn clone(&self) -> DataLinkLayerFilter
fn clone(&self) -> DataLinkLayerFilter
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DataLinkLayerFilter
impl Default for DataLinkLayerFilter
Source§fn default() -> DataLinkLayerFilter
fn default() -> DataLinkLayerFilter
Returns the “default value” for a type. Read more
impl Copy for DataLinkLayerFilter
Auto Trait Implementations§
impl Freeze for DataLinkLayerFilter
impl RefUnwindSafe for DataLinkLayerFilter
impl Send for DataLinkLayerFilter
impl Sync for DataLinkLayerFilter
impl Unpin for DataLinkLayerFilter
impl UnwindSafe for DataLinkLayerFilter
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)