Struct peel_ip::prelude::Data []

pub struct Data<C> {
    pub custom: Option<C>,
    // some fields omitted
}

Identifies the connection

Fields

Data from the user

Methods

impl<C> Data<C>

Create new connection data

Retrieve the current packet counter value

Trait Implementations

impl<C> PartialEq<Data<C>> for Data<C> where C: PartialEq<C>

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

This method tests for !=.

impl<C> Clone for Data<C> where C: Clone

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C> Eq for Data<C> where C: Eq

impl<C> Debug for Data<C> where C: Debug

Formats the value using the given formatter.