Struct peel_ip::prelude::Identifier []

pub struct Identifier<K> {
    pub lower: Subscriber,
    pub greater: Subscriber,
    pub key: K,
}

Identifies the connection

Fields

Lower subscriber

Greater subscriber

Usually the communication protocol of the subscribers

Methods

impl<K> Identifier<K>

Create a new Identifier from needed connection information

Trait Implementations

impl<K> Display for Identifier<K> where K: Debug

Formats the value using the given formatter.

impl<K> PartialEq<Identifier<K>> for Identifier<K> where K: PartialEq<K>

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<K> Clone for Identifier<K> where K: Clone

Returns a copy of the value. Read more

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

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl<K> Debug for Identifier<K> where K: Debug

Formats the value using the given formatter.