Function hrpc_build::server::generate [−][src]
pub fn generate<T: Service>(service: &T, proto_path: &str) -> TokenStream
Expand description
Generate service for Server.
This takes some Service
and will generate a TokenStream
that contains
a public module containing the server service and handler trait.