Struct path::Identifier
[−]
[src]
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>
[src]
fn new(source_ip: IpAddr,
source_port: u16,
destination_ip: IpAddr,
destination_port: u16,
key: K)
-> Self
source_port: u16,
destination_ip: IpAddr,
destination_port: u16,
key: K)
-> Self
Create a new Identifier
from needed connection information
Trait Implementations
impl<K: Clone> Clone for Identifier<K>
[src]
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: Debug> Debug for Identifier<K>
[src]
impl<K: Hash> Hash for Identifier<K>
[src]
fn hash<__HK: Hasher>(&self, __arg_0: &mut __HK)
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.
impl<K: PartialEq> PartialEq for Identifier<K>
[src]
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 !=
.