Macro main

Source
macro_rules! main {
    ($($body:tt)*) => { ... };
}
Expand description

This macro is used to generate the main function for a given global type and service types. It will run all the services in parallel and wait for them to finish before exiting.

§Example

scuffle_bootstrap::main! {
    MyGlobal {
        scuffle_signal::SignalSvc,
        MyService,
    }
}

§See Also