Module gotham::prelude[][src]

Expand description

A collection of useful traits and macros that should always be imported.

Re-exports

pub use crate::handler::IntoHandlerFuture;
pub use crate::handler::IntoResponse;

Traits

Describes the API for defining a single route, after determining which request paths will be dispatched here. The API here uses chained function calls to build and add the route into the RouterBuilder which created it.

Defines functions used by a builder to determine which request paths will be dispatched to a route. This trait is implemented by the top-level RouterBuilder, and also the ScopedBuilder created by DrawRoutes::scope.

A trait for accessing data that is stored in State.

This trait allows you to convert a Result’s Err case into a handler error with the given status code. This is handy if you want to specify the status code but still use the ? shorthand.

This trait allows you to convert a Result’s Err case into a handler error with the given status code. This is handy if you want to specify the status code but still use the ? shorthand.

Derive Macros