pub struct MacPair;Available on crate feature
extractors only.Expand description
Extracts a MAC-pair flow key from the L2 Ethernet header. Works on any frame regardless of L3 — useful for ARP, BPDU, LLDP, link-local conversations.
Bidirectional: src↔dst MAC is one flow.
Trait Implementations§
impl Copy for MacPair
Source§impl FlowExtractor for MacPair
impl FlowExtractor for MacPair
Source§type Key = MacPairKey
type Key = MacPairKey
The flow key. Equality + hashability identify the flow.
Source§fn extract(&self, view: PacketView<'_>) -> Option<Extracted<MacPairKey>>
fn extract(&self, view: PacketView<'_>) -> Option<Extracted<MacPairKey>>
Extract a flow descriptor from
view. Read moreAuto Trait Implementations§
impl Freeze for MacPair
impl RefUnwindSafe for MacPair
impl Send for MacPair
impl Sync for MacPair
impl Unpin for MacPair
impl UnsafeUnpin for MacPair
impl UnwindSafe for MacPair
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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