Struct rustful::handler::Environment [] [src]

pub struct Environment<'a, 'b: 'a, 'l, 'g> {
    pub context: Context<'a, 'b, 'l, 'g>,
    pub response: Response<'a, 'g>,
    pub route_state: RouteState<'g>,
}

A request environment, containing the context, response and route state.

Fields

The request context, containing the request parameters.

The response that will be sent to the client.

A representation of the current routing state.

Methods

impl<'a, 'b, 'l, 'g> Environment<'a, 'b, 'l, 'g>
[src]

Replace the hyperlinks. This consumes the whole request environment and returns a new one with a different lifetime, together with the old hyperlinks.

Trait Implementations

Auto Trait Implementations

impl<'a, 'b, 'l, 'g> !Send for Environment<'a, 'b, 'l, 'g>

impl<'a, 'b, 'l, 'g> !Sync for Environment<'a, 'b, 'l, 'g>