Module service

Expand description

Service type and utilities.

Service are the abstraction of (leaf) services in Rama.

Modules§

handler
async fn(...) as crate.

Structs§

BoxService
A boxed Service, to serve requests with, for where you require dynamic dispatch.
RejectError
request rejected
RejectService
A Service] which always rejects with an error.

Traits§

Service
A Service that produces rama services, to serve requests with, be it transport layer requests or application layer requests.

Functions§

service_fn
Create a ServiceFn from a function.