Skip to main content

Module routing

Module routing 

Source

Structs§

Router
The router type for composing handlers and services.
State
Extractor for state.

Traits§

FromRef
Used to do reference-to-value conversions thus not consuming the input value.

Functions§

any
Route requests with the given handler regardless of the method.
connect
Route CONNECT requests to the given handler.
delete
Route DELETE requests to the given handler.
get
Route GET requests to the given handler.
head
Route HEAD requests to the given handler.
options
Route OPTIONS requests to the given handler.
patch
Route PATCH requests to the given handler.
post
Route POST requests to the given handler.
put
Route PUT requests to the given handler.
trace
Route TRACE requests to the given handler.

Derive Macros§

FromRef
Derive an implementation of FromRef for each field in a struct.