#[non_exhaustive]pub struct FlowEntry<S> {
pub stats: FlowStats,
pub state: FlowState,
pub history: HistoryString,
pub user: S,
pub last_tick_at: Option<Timestamp>,
/* private fields */
}Available on crate feature
tracker only.Expand description
Per-flow accounting + user state.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stats: FlowStats§state: FlowState§history: HistoryString§user: S§last_tick_at: Option<Timestamp>Last time the driver emitted a FlowEvent::Tick for this
flow. None until the first tick fires. Only used when
FlowTrackerConfig::flow_tick_interval is Some.
Implementations§
Source§impl<S> FlowEntry<S>
impl<S> FlowEntry<S>
Sourcepub fn initiator_orientation(&self) -> Orientation
pub fn initiator_orientation(&self) -> Orientation
The canonical Orientation of this flow’s initiator
(first-seen packet) — the deterministic, address-sorted
direction the FlowSide mapping is anchored to. New in
0.20.0 (issue #118). Mirrors
FlowStats::initiator_orientation.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for FlowEntry<S>where
S: Freeze,
impl<S> RefUnwindSafe for FlowEntry<S>where
S: RefUnwindSafe,
impl<S> Send for FlowEntry<S>where
S: Send,
impl<S> Sync for FlowEntry<S>where
S: Sync,
impl<S> Unpin for FlowEntry<S>where
S: Unpin,
impl<S> UnsafeUnpin for FlowEntry<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for FlowEntry<S>where
S: UnwindSafe,
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