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
identifier: &'a Identifier<K>
Identifies the connection
data: &'b mut Data<C>
Data which can be used for the connection
Methods
impl<'a, 'b, K, C> Connection<'a, 'b, K, C>
fn new(identifier: &'a Identifier<K>,
data: &'b mut Data<C>)
-> Connection<'a, 'b, K, C>
data: &'b mut Data<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
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>
fn eq(&self, __arg_0: &Connection<'a, 'b, K, C>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Connection<'a, 'b, K, C>) -> bool
This method tests for !=
.