pub struct FiveTuple { /* private fields */ }Available on crate feature
extractors only.Expand description
Standard 5-tuple flow extractor: protocol + source + destination
IP/port. Bidirectional by default — A→B and B→A merge into one
flow with Orientation::Forward / Orientation::Reverse.
Implementations§
Source§impl FiveTuple
impl FiveTuple
Sourcepub const fn directional() -> Self
pub const fn directional() -> Self
A→B and B→A are tracked as separate flows.
Sourcepub const fn bidirectional() -> Self
pub const fn bidirectional() -> Self
A→B and B→A are merged into one flow. The endpoints are
canonically sorted into (a, b) where a < b.
Sourcepub const fn is_bidirectional(&self) -> bool
pub const fn is_bidirectional(&self) -> bool
Whether this extractor canonicalizes endpoint ordering.
Trait Implementations§
Source§impl FlowExtractor for FiveTuple
impl FlowExtractor for FiveTuple
Source§type Key = FiveTupleKey
type Key = FiveTupleKey
The flow key. Equality + hashability identify the flow.
Source§fn extract(&self, view: PacketView<'_>) -> Option<Extracted<FiveTupleKey>>
fn extract(&self, view: PacketView<'_>) -> Option<Extracted<FiveTupleKey>>
Extract a flow descriptor from
view. Read moreimpl Copy for FiveTuple
Auto Trait Implementations§
impl Freeze for FiveTuple
impl RefUnwindSafe for FiveTuple
impl Send for FiveTuple
impl Sync for FiveTuple
impl Unpin for FiveTuple
impl UnsafeUnpin for FiveTuple
impl UnwindSafe for FiveTuple
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