Struct peel_ip::prelude::Identifier
[−]
pub struct Identifier<K> { pub lower: Subscriber, pub greater: Subscriber, pub key: K, }
Identifies the connection
Fields
lower: Subscriber
Lower subscriber
greater: Subscriber
Greater subscriber
key: K
Usually the communication protocol of the subscribers
Methods
impl<K> Identifier<K>
fn new(source_ip: IpAddr,
source_port: u16,
destination_ip: IpAddr,
destination_port: u16,
key: K)
-> Identifier<K>
source_port: u16,
destination_ip: IpAddr,
destination_port: u16,
key: K)
-> Identifier<K>
Create a new Identifier
from needed connection information
Trait Implementations
impl<K> Display for Identifier<K> where K: Debug
impl<K> PartialEq<Identifier<K>> for Identifier<K> where K: PartialEq<K>
fn eq(&self, __arg_0: &Identifier<K>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Identifier<K>) -> bool
This method tests for !=
.
impl<K> Clone for Identifier<K> where K: Clone
fn clone(&self) -> Identifier<K>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<K> Eq for Identifier<K> where K: Eq
impl<K> Hash for Identifier<K> where K: Hash
fn hash<__HK>(&self, __arg_0: &mut __HK) where __HK: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.