#[repr(C, packed(1))]pub struct Eth8023Filter {
pub valid_fields: Eth802_3FilterFlags,
pub src_address: [u8; 6],
pub dest_address: [u8; 6],
pub protocol: u16,
pub padding: u16,
}Expand description
This structure is used to define an Ethernet 802.3 filter based on various fields like source and destination addresses, and protocol.
A Rust equivalent for the _ETH_802_3_FILTER structure.
Fields§
§valid_fields: Eth802_3FilterFlagsA bitmask indicating which fields in the filter are valid.
src_address: [u8; 6]The source address to filter on.
dest_address: [u8; 6]The destination address to filter on.
protocol: u16The protocol (Ethertype) to filter on.
padding: u16Padding to align the structure.
Implementations§
Source§impl Eth8023Filter
Creates a new Eth8023Filter instance.
impl Eth8023Filter
Creates a new Eth8023Filter instance.
Trait Implementations§
Source§impl Clone for Eth8023Filter
impl Clone for Eth8023Filter
Source§fn clone(&self) -> Eth8023Filter
fn clone(&self) -> Eth8023Filter
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 Debug for Eth8023Filter
impl Debug for Eth8023Filter
Source§impl Default for Eth8023Filter
impl Default for Eth8023Filter
impl Copy for Eth8023Filter
Auto Trait Implementations§
impl Freeze for Eth8023Filter
impl RefUnwindSafe for Eth8023Filter
impl Send for Eth8023Filter
impl Sync for Eth8023Filter
impl Unpin for Eth8023Filter
impl UnwindSafe for Eth8023Filter
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)