Trait GrpcConfigurator

Source
pub trait GrpcConfigurator {
    // Required method
    fn add_service<S>(&mut self, service: S) -> &mut Self
       where S: Service<Request<Body>, Error = Infallible> + NamedService + Clone + Send + Sync + 'static,
             S::Response: IntoResponse,
             S::Future: Send + 'static;
}
Expand description

Grpc Configurator

Required Methods§

Source

fn add_service<S>(&mut self, service: S) -> &mut Self
where S: Service<Request<Body>, Error = Infallible> + NamedService + Clone + Send + Sync + 'static, S::Response: IntoResponse, S::Future: Send + 'static,

add grpc service to app registry

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl GrpcConfigurator for AppBuilder

Source§

fn add_service<S>(&mut self, svc: S) -> &mut Self
where S: Service<Request<Body>, Error = Infallible> + NamedService + Clone + Send + Sync + 'static, S::Response: IntoResponse, S::Future: Send + 'static,

Implementors§