macro_rules! combine_services {
    (
        $( #[$fattr:meta] )*
        $fsvc:ident,
        $(
            $( #[$attr:meta] )*
            $svc:ident
        ),+
    ) => { ... };
}
Expand description

Combines a list of services that implement MakeRoutes.

Example

let hello = HelloServer::new(HelloService);
let welcome = WelcomeServer::new(WelcomeService);
combine_services!(hello, welcome).serve("127.0.0.1:2289").await?;