Struct peel_ip::prelude::Data
[−]
pub struct Data<C> { pub custom: Option<C>, // some fields omitted }
Identifies the connection
Fields
custom: Option<C>
Data from the user
Methods
impl<C> Data<C>
fn new() -> Data<C>
Create new connection data
fn packet_counter(&self) -> u64
Retrieve the current packet counter value
Trait Implementations
impl<C> PartialEq<Data<C>> for Data<C> where C: PartialEq<C>
fn eq(&self, __arg_0: &Data<C>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Data<C>) -> bool
This method tests for !=
.
impl<C> Clone for Data<C> where C: Clone
fn clone(&self) -> Data<C>
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