penumbra_proto::box_grpc_svc

Function local

Source
pub fn local<S, B>(svc: S) -> BoxGrpcService
where S: Service<Request<BoxBody>, Response = Response<B>> + Clone + Send + Sync + 'static, S::Error: 'static, S::Future: Send, BoxError: From<S::Error> + From<B::Error>, B: Body<Data = Bytes> + Send + 'static,
Available on crate feature box-grpc only.
Expand description

Constructs a BoxGrpcService by erasing the type of an S-typed local (in-process) service instance.