pub struct ServerRequest {
    pub request: Request,
    /* private fields */
}
Expand description

Wrapper over Request which adds an identification token.

Fields

request: Request

Inner request.

Implementations

Creates a new ServerRequest object from an existing Request, adding an identification token.

Returns a reference to the inner request.

Calls the function provided on the inner request to obtain the response. The response is then wrapped in a ServerResponse.

Returns a ServerResponse ready for yielding to the server

Trait Implementations

Formats the value using the given formatter. Read more

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.

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.