pub struct FiveTuple {
pub protocol: u8,
pub src_addr: SocketAddr,
pub dst_addr: SocketAddr,
}Expand description
5-tuple uniquely identifying a UDP/TCP session.
Consists of:
- source IP address
- source port
- destination IP address
- destination port
- transport protocol
Fields§
§protocol: u8Number of the transport protocol according to IANA.
src_addr: SocketAddrSource address.
dst_addr: SocketAddrDestination address.
Trait Implementations§
impl Copy for FiveTuple
impl Eq for FiveTuple
impl StructuralPartialEq for FiveTuple
Auto Trait Implementations§
impl Freeze for FiveTuple
impl RefUnwindSafe for FiveTuple
impl Send for FiveTuple
impl Sync for FiveTuple
impl Unpin for FiveTuple
impl UnwindSafe for FiveTuple
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