pub enum SessionEvent<K, M> {
Started {
key: K,
ts: Timestamp,
},
Application {
key: K,
side: FlowSide,
message: M,
ts: Timestamp,
},
Closed {
key: K,
reason: EndReason,
stats: FlowStats,
},
}Available on crate feature
session only.Expand description
Output of a SessionParser or DatagramParser-backed stream.
K is the flow key, M is the parser’s message type.
Variants§
Started
First packet of a new session.
Application
Parser emitted a complete L7 message.
Closed
Session ended (FIN/RST/idle/eviction). Any messages the
parser flushed on close arrive as Application events
before the corresponding Closed.
Trait Implementations§
Auto Trait Implementations§
impl<K, M> Freeze for SessionEvent<K, M>
impl<K, M> RefUnwindSafe for SessionEvent<K, M>where
K: RefUnwindSafe,
M: RefUnwindSafe,
impl<K, M> Send for SessionEvent<K, M>
impl<K, M> Sync for SessionEvent<K, M>
impl<K, M> Unpin for SessionEvent<K, M>
impl<K, M> UnsafeUnpin for SessionEvent<K, M>where
K: UnsafeUnpin,
M: UnsafeUnpin,
impl<K, M> UnwindSafe for SessionEvent<K, M>where
K: UnwindSafe,
M: UnwindSafe,
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