Module gotham::handler [−][src]
Defines types for handlers, the primary building block of a Gotham application.
A function can be used directly as a handler using one of the default implementations of
Handler
, but the traits can also be implemented directly for greater control. See the
Handler
trait for some examples of valid handlers.
Modules
assets | Defines handlers for serving static assets.
Defines handlers for static assets, used by |
Structs
HandlerError | Describes an error which occurred during handler execution, and allows the creation of a HTTP
|
Traits
Handler | A |
IntoHandlerFuture | Represents a type which can be converted into the future type returned by a |
IntoResponse | Represents a type which can be converted to a response. This trait is used in converting the return type of a function into a response. |
MapHandlerError | This trait allows you to convert a |
MapHandlerErrorFuture | This trait allows you to convert a |
NewHandler | A type which is used to spawn new |
Type Definitions
HandlerFuture | A type alias for the trait objects returned by |
HandlerResult | A type alias for the results returned by async fns that can be passed to to_async. |
SimpleHandlerResult | A type alias for the results returned by async fns that can be passed to to_async_borrowing. |