Macro hrpc::combine_services [−][src]
macro_rules! combine_services {
($fsvc : ident, $($svc : ident), +) => { ... };
}
Expand description
Combines a list of services that implement Server
.
Example
ⓘ
let hello = HelloServer::new(HelloService);
let welcome = WelcomeServer::new(WelcomeService);
combine_services!(hello, welcome).serve("127.0.0.1:2289").await?;