[−][src]Module hyperdrive::service
Implements hyper Service
adapters that reduce boilerplate.
This module contains adapters for hyper's Service
trait that make common
operations easier and require less boilerplate:
AsyncService
andSyncService
can be directly passed to a hyper server and will decode incoming requests for you and invoke a handler closure. They make it very easy to use any type implementingFromRequest
as the main entry point of your app.ServiceExt
provides adapter methods on HyperService
s that simplify common patterns like catching panics.
Structs
AsyncService | Asynchronous hyper service adapter. |
CatchUnwind | A |
MakeServiceByCloning | Implements Hyper's |
SyncService | A hyper |
Traits
ServiceExt | Extension trait for types implementing Hyper's |