pub struct FlowId {
pub src_port: u16,
pub dst_port: u16,
pub protocol: u8,
}Expand description
Flow identifier for ECMP hashing
Fields§
§src_port: u16Source port (for UDP/TCP)
dst_port: u16Destination port (for UDP/TCP)
protocol: u8Protocol (UDP=17, TCP=6, ICMP=1)
Implementations§
Source§impl FlowId
impl FlowId
Sourcepub fn default_paris() -> Self
pub fn default_paris() -> Self
Default Paris flow ID (commonly used values)
Trait Implementations§
impl Copy for FlowId
impl Eq for FlowId
impl StructuralPartialEq 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 UnsafeUnpin 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