Module service

Source
Expand description

Utilities for using Tower services with Tonic.

Re-exports§

pub use self::recover_error::RecoverError;
pub use self::recover_error::RecoverErrorLayer;

Modules§

interceptor
gRPC interceptors which are a kind of middleware.
recover_error
Middleware which recovers from error.

Structs§

AxumBody
The body type used in axum requests and responses.
AxumRouter
The router type for composing handlers and services.
InterceptorLayer
A gRPC interceptor that can be used as a Layer,
Layered
A layered service to propagate NamedService implementation.
Routes
A Service router.
RoutesBuilder
Allows adding new services to routes by passing a mutable reference to this builder.

Traits§

Interceptor
A gRPC interceptor.
LayerExt
Extension trait which adds utility methods to types which implement tower_layer::Layer.