pub struct FiveTuple {
pub protocol: Protocol,
pub src_addr: SocketAddr,
pub dst_addr: SocketAddr,
}Expand description
FiveTuple is the combination (client IP address and port, server IP
address and port, and transport protocol (currently one of UDP,
TCP, or TLS)) used to communicate between the client and the
server. The 5-tuple uniquely identifies this communication
stream. The 5-tuple also uniquely identifies the Allocation on
the server.
Fields§
§protocol: Protocol§src_addr: SocketAddr§dst_addr: SocketAddrTrait 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 UnsafeUnpin 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