pub struct ServerCtx<RequestData, ResponseData, LocalData> {
    pub connection_id: ConnectionId,
    pub request: Request<RequestData>,
    pub reply: ServerReply<ResponseData>,
    pub local_data: Arc<LocalData>,
}
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<RequestData>

The request being handled

reply: ServerReply<ResponseData>

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

local_data: Arc<LocalData>

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more