Struct retina_core::FiveTuple
source · pub struct FiveTuple {
pub orig: SocketAddr,
pub resp: SocketAddr,
pub proto: usize,
}
Expand description
Connection 5-tuple.
The sender of the first observed packet in the connection becomes the originator orig
, and the
recipient becomes the responder resp
.
Fields§
§orig: SocketAddr
The originator connection endpoint.
resp: SocketAddr
The responder connection endpoint.
proto: usize
The layer-4 protocol.
Implementations§
Trait Implementations§
source§impl PartialEq<FiveTuple> for FiveTuple
impl PartialEq<FiveTuple> for FiveTuple
impl Copy for FiveTuple
impl Eq for FiveTuple
impl StructuralEq for FiveTuple
impl StructuralPartialEq for FiveTuple
Auto Trait Implementations§
impl RefUnwindSafe for FiveTuple
impl Send for FiveTuple
impl Sync for FiveTuple
impl Unpin for FiveTuple
impl UnwindSafe for FiveTuple
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.