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§
Sourcefn add_service<S>(&mut self, service: S) -> &mut Selfwhere
S: Service<Request<Body>, Error = Infallible> + NamedService + Clone + Send + Sync + 'static,
S::Response: IntoResponse,
S::Future: Send + 'static,
fn add_service<S>(&mut self, service: S) -> &mut Selfwhere
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.