pub struct StreamContext {
pub connection_id: u64,
pub direction: Direction,
pub src_ip: IpAddr,
pub dst_ip: IpAddr,
pub src_port: u16,
pub dst_port: u16,
pub bytes_parsed: usize,
pub messages_parsed: usize,
pub alpn: Option<String>,
}Expand description
Context for stream parsing.
Fields§
§connection_id: u64§direction: Direction§src_ip: IpAddr§dst_ip: IpAddr§src_port: u16§dst_port: u16§bytes_parsed: usizeBytes already parsed from this stream
messages_parsed: usizeMessages already parsed from this stream
alpn: Option<String>ALPN protocol hint (from TLS handshake)
Trait Implementations§
Source§impl Clone for StreamContext
impl Clone for StreamContext
Source§fn clone(&self) -> StreamContext
fn clone(&self) -> StreamContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamContext
impl RefUnwindSafe for StreamContext
impl Send for StreamContext
impl Sync for StreamContext
impl Unpin for StreamContext
impl UnwindSafe for StreamContext
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