[−][src]Struct libflow::flow_id::FlowId
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
transport_protocol: u8
Layer 4 protocol (e.g TCP, UDP, ICMP)
src: IpAddr
Source IP address
dst: IpAddr
Destination IP address
src_port: u16
Source port. 0 if not relevant for protocol
dst_port: u16
Destination port. 0 if not relevant for protocol
Implementations
impl FlowId
[src]
pub fn new(
transport_protocol: u8,
src: &str,
dst: &str,
src_port: u16,
dst_port: u16
) -> Self
[src]
transport_protocol: u8,
src: &str,
dst: &str,
src_port: u16,
dst_port: u16
) -> Self
Create a Flow Id with IP addresses for src and dest provided as string.
Trait Implementations
impl Debug for FlowId
[src]
impl Default for FlowId
[src]
pub fn default() -> Self
[src]
Create a Flow Id with defaults values and "0.0.0.0" IP addresses for src and dest.
impl Display for FlowId
[src]
impl Eq for FlowId
[src]
impl Hash for FlowId
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<FlowId> for FlowId
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for FlowId
[src]
Auto Trait Implementations
impl RefUnwindSafe for FlowId
[src]
impl Send for FlowId
[src]
impl Sync for FlowId
[src]
impl Unpin for FlowId
[src]
impl UnwindSafe for FlowId
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,