pub struct ServerCtx<T, U, D> {
    pub connection_id: ConnectionId,
    pub request: Request<T>,
    pub reply: ServerReply<U>,
    pub local_data: Arc<D>,
}
Expand description

Represents contextual information for working with an inbound request

Fields

connection_id: ConnectionId

Unique identifer associated with the connection that sent the request

request: Request<T>

The request being handled

reply: ServerReply<U>

Used to send replies back to be sent out by the server

local_data: Arc<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.