pub struct ConnectionCtx<'a, D> {
    pub connection_id: ConnectionId,
    pub local_data: &'a mut D,
}
Expand description

Represents contextual information for working with an inbound connection

Fields

connection_id: ConnectionId

Unique identifer associated with the connection

local_data: &'a mut D

Reference to the connection’s local data

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.