Struct rustful::handler::Variables [] [src]

pub struct Variables<H> { /* fields omitted */ }

Assigns names to route variables.

It's technically a single-item router, with the purpose of pairing route variable names with input values, but it has to come after other routers, since it has be at the end of a router chain to know what variables to use. It won't do any other routing work, so make sure to pair it with, at least, a path based router.

Trait Implementations

impl<H: Clone> Clone for Variables<H>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: FromHandler<H>, H> FromHandler<H> for Variables<T>
[src]

Create a handler from another handler and a BuilderContext.

impl<T: ApplyContext> ApplyContext for Variables<T>
[src]

Set properties, based on a given context.

Prepend existing properties, based on a given context.

impl<T: Merge> Merge for Variables<T>
[src]

Combine this handler with another, overwriting conflicting properties.

impl<'a, H: Build<'a>> Build<'a> for Variables<H>
[src]

The type that provides the builder API.

Get the builder type for this type, and prepare it with a context.

impl<H: HandleRequest> HandleRequest for Variables<H>
[src]

Try to handle an incoming request from the client, or return the request environment to the parent handler. Read more

List all of the hyperlinks into this handler, based on the provided base link. It's up to the handler implementation to decide how deep to go. Read more

impl<H: Default> Default for Variables<H>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<H> Send for Variables<H> where
    H: Send

impl<H> Sync for Variables<H> where
    H: Sync