pub struct FlowId {
pub src: IpAddr,
pub src_port: u16,
pub dst: IpAddr,
pub dst_port: u16,
pub transport_protocol: u8,
}Expand description
The flow unique identifier. A flow id is equal to another flow with the same transport protocol, src IP and port and dest IP and port. A flow id is also equal to another flow with the same transport protocol, and the src IP and port from one equal to the dest IP and port of the other.
Fields§
§src: IpAddrSource IP address
src_port: u16Source port. 0 if not relevant for protocol
dst: IpAddrDestination IP address
dst_port: u16Destination port. 0 if not relevant for protocol
transport_protocol: u8Layer 4 protocol (e.g TCP, UDP, ICMP)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlowId
impl<'de> Deserialize<'de> for FlowId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for FlowId
impl Eq for FlowId
Auto Trait Implementations§
impl Freeze for FlowId
impl RefUnwindSafe for FlowId
impl Send for FlowId
impl Sync for FlowId
impl Unpin for FlowId
impl UnwindSafe for FlowId
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