Struct peel_ip::prelude::Connection []

pub struct Connection<'a, 'b, K, C> where C: 'b, K: 'a {
    pub identifier: &'a Identifier<K>,
    pub data: &'b mut Data<C>,
}

Connection representation

Fields

Identifies the connection

Data which can be used for the connection

Methods

impl<'a, 'b, K, C> Connection<'a, 'b, K, C>

Create a new Connection from an Identifier and Data

Trait Implementations

impl<'a, 'b, K, C> Display for Connection<'a, 'b, K, C> where K: Debug

Formats the value using the given formatter.

impl<'a, 'b, K, C> PartialEq<Connection<'a, 'b, K, C>> for Connection<'a, 'b, K, C> where C: 'b + PartialEq<C>, K: 'a + PartialEq<K>

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

This method tests for !=.

impl<'a, 'b, K, C> Eq for Connection<'a, 'b, K, C> where C: 'b + Eq, K: 'a + Eq

impl<'a, 'b, K, C> Debug for Connection<'a, 'b, K, C> where C: 'b + Debug, K: 'a + Debug

Formats the value using the given formatter.