pub struct ThreeTuple {
pub src: IpAddr,
pub dst: IpAddr,
pub l4_proto: u8,
}Expand description
Network 3-tuple: layer 4 protocol (e.g TCP or UDP), source and destination IP addresses
Fields§
§src: IpAddrSource IP address
dst: IpAddrDestination IP address
l4_proto: u8Layer 4 protocol (e.g TCP, UDP)
Implementations§
Trait Implementations§
Source§impl Clone for ThreeTuple
impl Clone for ThreeTuple
Source§fn clone(&self) -> ThreeTuple
fn clone(&self) -> ThreeTuple
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 moreSource§impl Debug for ThreeTuple
impl Debug for ThreeTuple
Source§impl Default for ThreeTuple
impl Default for ThreeTuple
Source§impl Display for ThreeTuple
impl Display for ThreeTuple
Source§impl Hash for ThreeTuple
impl Hash for ThreeTuple
Source§impl Ord for ThreeTuple
impl Ord for ThreeTuple
Source§fn cmp(&self, other: &ThreeTuple) -> Ordering
fn cmp(&self, other: &ThreeTuple) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ThreeTuple
impl PartialEq for ThreeTuple
Source§impl PartialOrd for ThreeTuple
impl PartialOrd for ThreeTuple
Source§impl Serialize for ThreeTuple
impl Serialize for ThreeTuple
impl Eq for ThreeTuple
impl StructuralPartialEq for ThreeTuple
Auto Trait Implementations§
impl Freeze for ThreeTuple
impl RefUnwindSafe for ThreeTuple
impl Send for ThreeTuple
impl Sync for ThreeTuple
impl Unpin for ThreeTuple
impl UnwindSafe for ThreeTuple
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